mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Fix code quality checks to run on project root and custom libs
Fixes #1600 Fixes #1601
This commit is contained in:
parent
3a95b433f3
commit
8736642e78
1 changed files with 11 additions and 2 deletions
13
tox.ini
13
tox.ini
|
@ -33,6 +33,15 @@ commands =
|
||||||
max-line-length = 79
|
max-line-length = 79
|
||||||
verbose = 2
|
verbose = 2
|
||||||
statistics = True
|
statistics = True
|
||||||
|
exclude =
|
||||||
|
.github/
|
||||||
|
.tox/
|
||||||
|
.pytest_cache/
|
||||||
|
htmlcov/
|
||||||
|
logs/
|
||||||
|
libs/common
|
||||||
|
libs/win
|
||||||
|
libs/py2
|
||||||
ignore =
|
ignore =
|
||||||
; -- flake8 --
|
; -- flake8 --
|
||||||
; E501 line too long
|
; E501 line too long
|
||||||
|
@ -74,13 +83,13 @@ skip_install = true
|
||||||
commands =
|
commands =
|
||||||
; ** PRIMARY TESTS **
|
; ** PRIMARY TESTS **
|
||||||
; Run flake8 tests (with plugins) using default test selections
|
; Run flake8 tests (with plugins) using default test selections
|
||||||
flake8 core tests setup.py
|
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-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 core tests setup.py --select=B902,B903
|
flake8 --select=B902,B903
|
||||||
|
|
||||||
[coverage:run]
|
[coverage:run]
|
||||||
omit =
|
omit =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue