-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
37 lines (33 loc) · 947 Bytes
/
ruff.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
# Exclude a variety of commonly ignored directories.
# exclude = [""]
src = ["src", "tests"]
line-length = 120
indent-width = 4
target-version = "py312"
[lint]
select = ["ALL"]
ignore = [
"D203", # one-blank-line-before-class
"D212", # multi-line-summary-first-line
"FIX", # flake8-fixme
"INP", # flake8-no-pep420
"S104", # hardcoded-bind-all-interfaces
"TD002", # missing-todo-author
"TD003", # missing-todo-link
]
[lint.per-file-ignores]
"__init__.py" = [
"D104", # undocumented-public-package
]
"tests/**/*.py" = [
"ANN001", # missing-type-function-argument
"ANN201", # missing-return-type-undocumented-public-function
"D", # pydocstyle
"PLR2004", # magic-value-comparison
"PT001", # pytest-fixture-incorrect-parentheses-style
"S101", # assert
]
[lint.pydocstyle]
convention = "google"
[format]
quote-style = "double"