Skip to content

Commit

Permalink
Run flake8 during tests
Browse files Browse the repository at this point in the history
This is useful to catch simple mistakes, unused variables or imports, ...
  • Loading branch information
nbraud committed Feb 4, 2019
1 parent 04037bd commit a5d3c30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
flake8
hypothesis
mypy==0.641
perf
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
ignore = E704
max-line-length = 100
4 changes: 4 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ fi
run pytest "${PYTEST_OPTIONS[@]}"
[[ "${PYTHON+x}" =~ pypy-* ]] || run mypy ppb_vector tests
run python -m doctest README.md

run flake8 --version
run flake8 --ignore F403,F405 tests
run flake8 --exclude tests/

0 comments on commit a5d3c30

Please sign in to comment.