Skip to content

Commit 11a19c9

Browse files
author
Lev Rubel
committed
ignoring F722 during build in CI
1 parent ca6f6a9 commit 11a19c9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
run: |
2626
pip install flake8
2727
# stop the build if there are Python syntax errors or undefined names
28-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
28+
flake8 . --count --select=E9,F63,F7,F82 --ignore F722 --show-source --statistics
2929
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=79 --statistics
3131
- name: Test with pytest
3232
run: |
3333
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=97

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ clean-test: ## remove test and coverage artifacts
5151
rm -fr .pytest_cache
5252

5353
lint: ## check style with flake8
54-
flake8 fastapi_contrib tests
54+
# stop the build if there are Python syntax errors or undefined names
55+
flake8 . --count --select=E9,F63,F7,F82 --ignore F722 --show-source --statistics
56+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
57+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
5558

5659
test: ## run tests quickly with the default Python
5760
py.test --cov=fastapi_contrib --cov-report=term-missing:skip-covered --cov-branch --cov-fail-under=97

0 commit comments

Comments
 (0)