Skip to content

Commit

Permalink
Enable flake8 testing with pytest
Browse files Browse the repository at this point in the history
Maske E402 in two files until Python2 is dropped
  • Loading branch information
timj committed Aug 26, 2017
1 parent 7c86ef0 commit 833dede
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
max-line-length = 110
ignore = E133, E226, E228, N802, N803, N806
exclude = __init__.py, testLib.py, ticket1914.py

[tool:pytest]
addopts = --flake8
flake8-ignore = E133 E226 E228 N802 N803 N806
# These can be fixed when python2 is dropped
python/lsst/pex/config/choiceField.py E402
python/lsst/pex/config/config.py E402
2 changes: 1 addition & 1 deletion tests/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from lsst.sconsUtils import scripts
scripts.BasicSConscript.pybind11(['testLib'])
scripts.BasicSConscript.tests(noBuildList=['testLib.cc'],
ignoreList=['testLib.py'])
pyList=[])

0 comments on commit 833dede

Please sign in to comment.