-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
42 lines (36 loc) · 1.18 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[build-system]
requires = ["setuptools>=42", "wheel"]
[tool.pyright]
reportImportCycles = false
enableTypeIgnoreComments = false
typeCheckingMode = "strict"
"include" = ["filecheckize"]
"ignore" = ["filecheckize/_version.py"]
[tool.isort]
profile = "black"
[tool.ruff]
lint.select = ["E", "F", "W", "I", "UP", "PT"]
lint.ignore = [
"E741", # https://beta.ruff.rs/docs/rules/ambiguous-variable-name/
"PT006", # https://beta.ruff.rs/docs/rules/pytest-parametrize-names-wrong-type/
"PT007", # https://beta.ruff.rs/docs/rules/pytest-parametrize-values-wrong-type/
"PT011", # https://beta.ruff.rs/docs/rules/pytest-raises-too-broad/
"PT012", # https://beta.ruff.rs/docs/rules/pytest-raises-with-multiple-statements/
"PT015", # https://beta.ruff.rs/docs/rules/pytest-assert-always-false/
]
line-length = 300
target-version = "py310"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403"]
"versioneer.py" = ["ALL"]
"_version.py" = ["ALL"]
"setup.py" = ["ALL"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.black]
# When updating this list, please update `.pre-commit-config.yaml`
exclude = """
/(__pycache__|.asv|\\.?venv|build|tests/filecheck)/
|versioneer.py$
|_version.py$
"""