Skip to content

Commit b9108dc

Browse files
committed
Attempting to fix test template validation and flak8 linting.
1 parent 783bd16 commit b9108dc

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
run: |
6868
bin/generate_tests.py --verbose -p ./problem-specifications --check
6969
70-
# - name: Lint with flake8
71-
# run: |
72-
# # stop the build if there are Python syntax errors or undefined names
73-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
74-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
75-
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
70+
- name: Lint with flake8
71+
run: |
72+
# stop the build if there are Python syntax errors or undefined names
73+
flake8 --exclude ./test --count --select=E9,F63,F7,F82 --show-source --statistics
74+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
75+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
7676
7777
- name: Test template status
7878
continue-on-error: true

bin/template_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from githelp import Repo
1616
from test_exercises import check_assignment
1717

18-
DEFAULT_SPEC_LOCATION = Path('/home/runner/work/python-test-runner/python-test-runner/problem-specifications')
18+
DEFAULT_SPEC_LOCATION = Path('')
1919

2020
logging.basicConfig(format="%(levelname)s:%(message)s")
2121
logger = logging.getLogger("generator")

requirements-generator.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
Jinja2~=3.1.6
12
black<=25.1.0
23
flake8~=7.3.0
3-
pytest~=8.4.0
4+
markupsafe==3.0.2
45
pytest-subtests~=0.14.2
5-
requests~=2.32.4
6-
Jinja2~=3.1.6
6+
pytest~=8.4.0
77
python-dateutil==2.8.1
8-
markupsafe==3.0.2
8+
requests~=2.32.4
99
tomli>=2.2.1; python_full_version < '3.11.2'
1010

1111

0 commit comments

Comments
 (0)