Move all test/linting configs into pyproject.toml
Except for flake8 which doesn't support pyproject.toml yet.
This commit is contained in:
parent
7af2af52ae
commit
1b36bf2bb6
5 changed files with 33 additions and 23 deletions
2
.flake8
Normal file
2
.flake8
Normal file
|
@ -0,0 +1,2 @@
|
|||
[flake8]
|
||||
max-line-length = 120
|
17
pylintrc
17
pylintrc
|
@ -1,17 +0,0 @@
|
|||
[BASIC]
|
||||
good-names=pytestmark
|
||||
|
||||
[DESIGN]
|
||||
max-args=14
|
||||
max-locals=28
|
||||
max-attributes=8
|
||||
max-statements=65
|
||||
|
||||
[SIMILARITIES]
|
||||
min-similarity-lines=8
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
disable=redefined-outer-name
|
||||
|
||||
[TYPECHECK]
|
||||
ignored-modules=py
|
31
pyproject.toml
Normal file
31
pyproject.toml
Normal file
|
@ -0,0 +1,31 @@
|
|||
[tool.pytest.ini_options]
|
||||
cache_dir = "/tmp"
|
||||
addopts = "-ra"
|
||||
markers = [
|
||||
"deprecated", # marks tests for deprecated features (deselect with '-m "not deprecated"')
|
||||
]
|
||||
|
||||
[tool.pylint.design]
|
||||
max-args = 14
|
||||
max-locals = 28
|
||||
max-attributes = 8
|
||||
max-statements = 65
|
||||
|
||||
[tool.pylint.format]
|
||||
max-line-length = 120
|
||||
|
||||
[tool.pylint."messages control"]
|
||||
disable = [
|
||||
"redefined-outer-name",
|
||||
]
|
||||
|
||||
[tool.pylint.similarities]
|
||||
ignore-imports = "yes"
|
||||
min-similarity-lines = 8
|
||||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
|
||||
[tool.isort]
|
||||
line_length = 120
|
||||
profile = "black"
|
|
@ -1,5 +0,0 @@
|
|||
[pytest]
|
||||
cache_dir = /tmp
|
||||
addopts = -ra
|
||||
markers =
|
||||
deprecated: marks tests for deprecated features (deselect with '-m "not deprecated"')
|
|
@ -1 +0,0 @@
|
|||
../pylintrc
|
Loading…
Reference in a new issue