-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
69 lines (57 loc) · 1.84 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
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
write_to = "rattr/_version.py"
[tool.black]
line-length = 88
[tool.ruff]
line-length = 88
target-version = "py39"
force-exclude = true
extend-exclude = [
'venv',
'rattr/_version.py',
'tests/snippets/*',
'tests/regression/code/**/*.py',
]
[tool.ruff.lint]
select = [
'E', # pycodestyle: E
'W', # pycodestyle: W
'F', # pyflakes: F
'B', # flake8-bugbear: B
'N', # pep8-naming: N
'I', # isort: I
]
ignore = [
'ANN101', # Missing annotation for `self`: https://docs.astral.sh/ruff/rules/missing-type-self/
'ANN102', # Missing annotation for `cls`: https://docs.astral.sh/ruff/rules/missing-type-cls/
'ANN401', # Annotated with `Any`: https://beta.ruff.rs/docs/rules/any-type/
'E501', # Line to long: https://beta.ruff.rs/docs/rules/line-too-long/
'E741', # Ambiguous variable name: https://beta.ruff.rs/docs/rules/ambiguous-variable-name/
'B905', # Zip without strict flag
'N801', # Class names should use the CapWords convention (clashes with TestBlah_X and TestBlah_Y)
'N802', # Function name should be lowercase
'N803', # Argument name should be lowercase
'N805', # First argument of a method should be named `self` (abstractstaticmethod clashes with this)
'N806', # Variable in function should be lowercase (MyClass = type(...))
'N818', # Error suffix in exception names
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
required-imports = [
"from __future__ import annotations",
]
relative-imports-order = "closest-to-furthest"
combine-as-imports = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]