forked from rl-institut/cp_nigeria_app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
44 lines (41 loc) · 1.51 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
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 120
select = ["ALL"]
exclude = [
"manage.py",
]
ignore = [
"I001", # Import block is un-sorted or un-formatted (done by isort)
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line pydocstyle
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN003", # Missing type annotation for `**kwargs`
"EM102", # Exception must not use an f-string literal, assign to variable first
"TRY003", # Avoid specifying long messages outside the exception class
"S101", # Use of `assert` detected
"UP007", # Use `X | Y` for type annotations
"B905", # `zip()` without an explicit `strict=` parameter
"FIX001", # Line contains FIXME
"FIX002", # Line contains TODO
"RET504", # Unnecessary variable assignment before `return` statement
"G004", # Logging statement uses f-string
"PD011", # Use `.to_numpy()` instead of `.values` (does not work out of the box)
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"UP038", # (non-pep604-isinstance)
]
fix = true
show-fixes = true
unfixable = ["UP007", "I001"]
[tool.ruff.per-file-ignores]
"tests/*" = [
"PLR2004", # Magic value used in comparison
"ANN201", # Missing return type annotation for public function
]
"*/__init__.py" = [
"D104", # Missing docstring in public package
]