File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,17 @@ build-backend = "setuptools.build_meta"
7
7
# Read more here: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
8
8
[tool .black ]
9
9
line-length =80
10
+ # TODO: remove "excludes" after deleting old test files
11
+ exclude =" tests/.*old.py"
10
12
11
13
# Isort section
12
14
# Read more here: https://pycqa.github.io/isort/docs/configuration/config_files.html
13
15
[tool .isort ]
14
16
profile =" black"
15
17
line_length =80
16
18
known_first_party = [" tuf" ]
19
+ # TODO: remove "skip_glob" after deleting old test files
20
+ skip_glob =" *old.py"
17
21
18
22
# Pylint section
19
23
@@ -55,6 +59,8 @@ module-rgx="^(_?[a-z][a-z0-9_]*|__init__)$"
55
59
no-docstring-rgx =" (__.*__|main|test.*|.*test|.*Test)$"
56
60
variable-rgx =" ^[a-z][a-z0-9_]*$"
57
61
docstring-min-length =10
62
+ # TODO: remove "ignore-patterns" after deleting old test files
63
+ ignore-patterns =" .*_old.py"
58
64
59
65
[tool .pylint .logging ]
60
66
logging-format-style =" old"
@@ -76,6 +82,8 @@ strict_equality = "True"
76
82
disallow_untyped_defs = " True"
77
83
disallow_untyped_calls = " True"
78
84
show_error_codes = " True"
85
+ # TODO: remove "exclude" after deleting old test files
86
+ exclude =" .*_old.py"
79
87
80
88
[[tool .mypy .overrides ]]
81
89
module = [
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ commands =
38
38
39
39
[testenv:lint]
40
40
changedir = {toxinidir}
41
- lint_dirs = tuf/api tuf/ngclient examples
41
+ lint_dirs = tuf/api tuf/ngclient examples tests
42
42
commands =
43
43
# Use different configs for new (tuf/api/*) and legacy code
44
44
black --check --diff {[testenv:lint]lint_dirs}
You can’t perform that action at this time.
0 commit comments