Merge pull request #1605 from clinton-hall/flake8/selective-tests

Add optional flake8 tests to selective testing
This commit is contained in:
Labrys of Knossos 2019-04-07 15:38:31 -04:00 committed by GitHub
commit e98c29010a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
tox.ini
View file

@ -31,6 +31,7 @@ commands =
[flake8] [flake8]
max-line-length = 79 max-line-length = 79
max-doc-length = 79
verbose = 2 verbose = 2
statistics = True statistics = True
exclude = exclude =
@ -45,7 +46,8 @@ exclude =
ignore = ignore =
; -- flake8 -- ; -- flake8 --
; E501 line too long ; E501 line too long
E501 ; W505 doc line too long
E501, W505
; -- flake8-docstrings -- ; -- flake8-docstrings --
; D100 Missing docstring in public module ; D100 Missing docstring in public module
@ -89,10 +91,18 @@ commands =
flake8 flake8
; ** SELECTIVE TESTS ** ; ** SELECTIVE TESTS **
; Run flake8 tests (with plugins) for specific optional codes defined below ; Run flake8 tests (with plugins) for specific optional codes defined below
; -- flake8 --
; E123 closing bracket does not match indentation of opening brackets line
; E226 missing whitespace around arithmetic operator
; E241 multiple spaces after ,
; E242 tab after ,
; E704 multiple statements on one line
; W504 line break after binary operator
; W505 doc line too long
; -- flake8-bugbear -- ; -- flake8-bugbear --
; B902 Invalid first argument used for instance method. ; B902 Invalid first argument used for instance method.
; B903 Data class should be immutable or use __slots__ to save memory. ; B903 Data class should be immutable or use __slots__ to save memory.
flake8 --select=B902,B903 flake8 --select=B902,B903,E123,E226,E241,E242,E704,W504,W505
[coverage:run] [coverage:run]
omit = omit =