John Vandenberg has uploaded a new change for review. https://gerrit.wikimedia.org/r/282082
Change subject: Use flake8-putty 0.3.0 auto ignore ...................................................................... Use flake8-putty 0.3.0 auto ignore Instead of flake8's general # noqa, flake8-putty 0.3.0 allows individual codes to be disabled with '# flake8: disable=xxx' Change-Id: I21ee56755311c4c5f9cd427e2ce8aca35568b7f7 --- M pywikibot/comms/http.py M scripts/flickrripper.py M tox.ini 3 files changed, 6 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/82/282082/1 diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py index 260f486..30df06f 100644 --- a/pywikibot/comms/http.py +++ b/pywikibot/comms/http.py @@ -93,7 +93,7 @@ message = 'Closing network session.' if hasattr(sys, 'last_type'): # we quit because of an exception - print(sys.last_type) # noqa: print + print(sys.last_type) # flake8: disable=T001 critical(message) else: log(message) diff --git a/scripts/flickrripper.py b/scripts/flickrripper.py index 7fa9bce..7f5a20b 100755 --- a/scripts/flickrripper.py +++ b/scripts/flickrripper.py @@ -50,8 +50,8 @@ import flickrapi # see: http://stuvel.eu/projects/flickrapi except ImportError as e: print('This script requires the python flickrapi module. \n' - 'See: http://stuvel.eu/projects/flickrapi') # noqa: print - print(e) # noqa: print + 'See: http://stuvel.eu/projects/flickrapi') # flake8: disable=T001 + print(e) # flake8: disable=T001 sys.exit(1) import pywikibot diff --git a/tox.ini b/tox.ini index e52aa93..93fe69f 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,7 @@ git+https://github.com/pyflakes/pyflakes.git hacking flake8-docstrings<0.2.2 - flake8-putty>=0.2.0 + flake8-putty>=0.3.0 flake8-coding flake8-future-import flake8-string-format @@ -47,7 +47,7 @@ deps = flake8 git+https://github.com/pyflakes/pyflakes.git flake8-docstrings<0.2.2 - flake8-putty>=0.2.0 + flake8-putty>=0.3.0 [testenv:nose] commands = @@ -116,6 +116,7 @@ max_line_length = 100 accept-encodings = utf-8 require-code = true +putty-auto-ignore = true putty-ignore = pwb.py,scripts/interwiki.py,scripts/flickrripper.py,pywikibot/site.py, /# noqa: E731/ : +E731 generate_family_file.py : +T001, T003 -- To view, visit https://gerrit.wikimedia.org/r/282082 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I21ee56755311c4c5f9cd427e2ce8aca35568b7f7 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jay...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits