Skip to content

Commit 71a2604

Browse files
ignore UI.py in linting solved the problem..probably sth wrong with the tkinter for linting
1 parent 53a986f commit 71a2604

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

Diff for: .github/workflows/makefile.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ jobs:
1919

2020
- name: Testing
2121
run: make test
22+
23+
- name: Refactoring
24+
run: make refactor

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ format:
99
black *.py
1010

1111
lint:
12-
pylint --disable=R,C,pointless-string-statement --ignore-patterns=test_.*?py *.py
12+
pylint --disable=R,C,pointless-string-statement --ignore=UI.py --ignore-patterns=test_.*?py *.py
1313

1414
container-lint:
1515
docker run --rm -i hadolint/hadolint < Dockerfile
@@ -19,4 +19,4 @@ refactor: format lint
1919
deploy:
2020
#deploy goes here
2121

22-
all: install test format deploy
22+
all: install test refactor deploy

Diff for: RL.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
## Deep Reinforcement Learning part
22

3-
import random
4-
import copy
5-
import math
3+
# import random
4+
# import copy
5+
# import math
66

7-
import torch
8-
from torch import optim
9-
from torch import nn
10-
import torch.nn.functional as F
11-
import numpy as np
7+
# import torch
8+
# from torch import optim
9+
# from torch import nn
10+
# import torch.nn.functional as F
11+
# import numpy as np
1212

13-
from board import Board
13+
# from board import Board
1414

1515
"""
1616
2023.06.14 update: Empty all the stuff and start from scratch based on another approach

0 commit comments

Comments
 (0)