mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Merge pull request #1605 from clinton-hall/flake8/selective-tests
Add optional flake8 tests to selective testing
This commit is contained in:
commit
e98c29010a
1 changed files with 12 additions and 2 deletions
14
tox.ini
14
tox.ini
|
@ -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 bracket’s 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 =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue