Skip to content

Commit

Permalink
Enable automatic flake8 testing
Browse files Browse the repository at this point in the history
both by scons and Travis on github
  • Loading branch information
r-owen committed Apr 8, 2018
1 parent 73cf27b commit 9878852
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

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
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[flake8]
max-line-length = 110
ignore = E133, E226, E228, N802, N803, N806
exclude = __init__.py, config/*, description/*

[tool:pytest]
addopts = --flake8
flake8-ignore = E133 E226 E228 N802 N803 N806
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 9878852

Please sign in to comment.