Skip to content

Commit 1b36bf2

Browse files
Move all test/linting configs into pyproject.toml
Except for flake8 which doesn't support pyproject.toml yet.
1 parent 7af2af5 commit 1b36bf2

File tree

5 files changed

+33
-23
lines changed

5 files changed

+33
-23
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 120

pylintrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

pyproject.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[tool.pytest.ini_options]
2+
cache_dir = "/tmp"
3+
addopts = "-ra"
4+
markers = [
5+
"deprecated", # marks tests for deprecated features (deselect with '-m "not deprecated"')
6+
]
7+
8+
[tool.pylint.design]
9+
max-args = 14
10+
max-locals = 28
11+
max-attributes = 8
12+
max-statements = 65
13+
14+
[tool.pylint.format]
15+
max-line-length = 120
16+
17+
[tool.pylint."messages control"]
18+
disable = [
19+
"redefined-outer-name",
20+
]
21+
22+
[tool.pylint.similarities]
23+
ignore-imports = "yes"
24+
min-similarity-lines = 8
25+
26+
[tool.black]
27+
line-length = 120
28+
29+
[tool.isort]
30+
line_length = 120
31+
profile = "black"

pytest.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/pylintrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)