Skip to content

Commit

Permalink
Enable automatic flake8 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Apr 26, 2018
1 parent 484e7cd commit 59ce0e7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: false
language: python
matrix:
include:
- python: '3.6'
install:
- pip install flake8
script: flake8
13 changes: 13 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[flake8]
max-line-length = 110
ignore = E133, E226, E228, N802, N803, N806, E266
# TODO: remove E266 when Task documentation is converted to rst in DM-14207.
exclude =
__init__.py

[tool:pytest]
addopts = --flake8
flake8-ignore = E133 E226 E228 N802 N803 N806
# TODO: remove E266 lines when Task documentation is converted to rst in DM-14207.
assembleCcdTask.py E266
isrTask.py E266
2 changes: 1 addition & 1 deletion tests/SConscript
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- python -*-
from lsst.sconsUtils import scripts
scripts.BasicSConscript.tests()
scripts.BasicSConscript.tests(pyList=[])

0 comments on commit 59ce0e7

Please sign in to comment.