-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
84 lines (68 loc) · 1.53 KB
/
Copy pathruff.toml
File metadata and controls
84 lines (68 loc) · 1.53 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
# Configuration file example: https://docs.astral.sh/ruff/configuration/
# All settings: https://docs.astral.sh/ruff/settings/
fix = true
preview = true
line-length = 90
indent-width = 4
target-version = "py310"
include = [
"src/dishka_jobify/**/*.py",
"tests/**/*.py",
"pyproject.toml",
]
[format]
quote-style = "double"
indent-style = "space"
docstring-code-format = false
[lint]
select = [
"ALL",
]
ignore = [
"ANN401",
"PLC2701", # private name import `_internal` from external module
# Assign error message to variable
"EM101",
"EM102",
# # preview
"CPY",
"PLR6301",
"D100", # missing docstring in public module
"D101",
"D102",
"D103",
"D104", # missing docstring in public package
"D105", # missing docstring in magic methods
"D106", # missing docstring in public nested class
"D107", # missing docstring in __init__
"DOC201",
"DOC202",
"DOC402",
"DOC501",
"DOC502",
"COM812", # disable with format
]
[lint.per-file-ignores]
"tests/**/*.py" = [
"S",
"PLR0904",
"PLR0914",
"PLC1901",
"RUF045",
"RUF029",
"PLR2004",
"ARG001",
]
[lint.isort]
case-sensitive = true
combine-as-imports = true
force-wrap-aliases = true
[lint.pydocstyle]
convention = "google"
ignore-decorators = ["typing.overload"]
[lint.flake8-pytest-style]
fixture-parentheses = true
mark-parentheses = true
parametrize-names-type = "tuple"
parametrize-values-type = "tuple"
parametrize-values-row-type = "tuple"