-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
66 lines (55 loc) · 1.89 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
[build-system]
requires = ["setuptools >= 42", "wheel", "setuptools-scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = ["typings"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Incompatible with formatter
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812", # missing-trailing-comma
"COM819", # prohibited-trailing-comma
"D206", # indent-with-spaces
"D300", # triple-single-quotes
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
"ISC001", # single-line-implicit-string-concatenation
"ISC002", # multi-line-implicit-string-concatenation
"Q", # flake8-quotes
"W191", # tab-indentation
"A003", # Class attribute is shadowing a Python builtin
"ANN", # flake8-annotations
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"D1", # Missing docstring
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"ERA001", # Found commented-out code
"FIX", # flake8-fixme
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
"TRY003", # Avoid specifying long messages outside the exception class
# Excessive
"RET503", # implict return
"PLR2004", # magic value used in comparison
"TCH003", # type checking blocks
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"PLR0913", # Too many arguments to function call
"PLR2004", # Magic value used in comparison
"S", # flake8-bandit
"SLF001", # Private member accessed
]
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint.isort]
# Sort by name, don't cluster "from" vs "import"
force-sort-within-sections = true
[tool.ruff.lint.pydocstyle]
convention = "pep257"