-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
71 lines (61 loc) · 1.75 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tool.ruff]
ignore = [
"ANN101", # Missing type annotation for self in method
]
line-length = 88
# List of all rules https://docs.astral.sh/ruff/rules/
select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C", # flake8-comprehensions
"C90", # flake8, mccabe
"E", # flake8, pycodestyle
"F", # flake8, Pyflakes
"I", # isort
"INP", # flake8-no-pep420
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PL", # pylint
"PT", # flake8-pytest-style
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"T", # flake8-print
"ICN", # flake8-import-conventions
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"W", # flake8, pycodestyle
"UP", # pyupgrade
]
# Avoiding flagging (and removing) `SC200` from any `# noqa`
# directives, despite Ruff's lack of support for `flake8-spellcheck`.
external = ["SC200"]
target-version = "py39"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.per-file-ignores]
"test*" = [
"INP001",
"ANN201", # Missing return type annotation for public function
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
]
[tool.flake8]
max-line-length = 88
spellcheck-targets = "names"
dictionaries = "en_US,python,technical"
extend-ignore = [
"E203", # whitespace before ':'
"E501", # line length (checked by ruff now, possible mismatches)
]
per-file-ignores = [
"test/*:INP001,SC200",
]
[tool.mypy]
follow_imports = "normal"
show_column_numbers = true
[tool.pytest.ini_options]
minversion = "6.0"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"