Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-11660: Enable flake8 tests #29

Merged
merged 3 commits into from
Aug 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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=[])