Skip to content

Commit

Permalink
Merge pull request #29 from lsst/tickets/DM-11660
Browse files Browse the repository at this point in the history
DM-11660: Enable flake8 tests
  • Loading branch information
timj committed Aug 28, 2017
2 parents eef1ef2 + b0c8354 commit 73c05b9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cache
_build.*
.sconsign.dblite
config.log
Expand Down
1 change: 1 addition & 0 deletions examples/mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def b():
log.debug("Testing; logged only when called by a")
log.info("Leaving b")


if __name__ == "__main__":
log.configure("examples/log4cxx.properties")
main()
4 changes: 2 additions & 2 deletions python/lsst/log/log/logContinued.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
ERROR = 40000
FATAL = 50000

@continueClass

@continueClass # noqa F811 redefinition
class Log:
def trace(self, fmt, *args):
self._log(Log.TRACE, False, fmt, *args)
Expand Down Expand Up @@ -266,4 +267,3 @@ def translateLevel(self, levelno):
to standard log4cxx levels.
"""
return levelno*1000

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

[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 73c05b9

Please sign in to comment.