-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
88 lines (84 loc) · 1.65 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[build-system]
requires = ["setuptools", "wheel"]
[tool.ruff]
src = ["src"]
target-version = "py310"
[tool.ruff.lint]
select = [
"E",
"F",
"D",
"ANN",
"S",
# "BLE",
"B",
"A",
"C4",
"T10",
"DTZ",
"EXE",
"ISC",
"G",
"PIE",
"T20",
"PT",
"Q",
"RET",
"SLF",
"SIM",
"TID",
"TCH",
"ARG",
"PTH",
"ERA",
"TRY",
"RUF",
"UP",
]
ignore = [
# Not available in all supported Python versions
"B905",
# Black will handle this
"E501",
# Do not require docstrings everywhere
"D1",
# No need to add type annotation to self and cls
"ANN10",
# Allow Any
"ANN401",
# We use assert only for documentation purposes and debugging.
"S101",
# We want this as a feature of the configuration. The user is warned.
"S602",
# This one is hard to get around here
"S603",
# Required to be location-independent
"S607",
# I don't like this style
"TRY300",
# Gives some readability sometimes, No need to prevent this style
"RET505",
# This is the style used in this project.
"TID252",
# Will be fixed lated.
"TRY003",
"TRY301",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
# Allow hard-coded passwords in tests
"S105",
"S106",
# Allow potentially insecure temp directory access
"S108",
# shell access in tests it ok
"S604",
# Sometimes needed for the current tests
"SLF",
]
"src/autosuspend/checks/ical.py" = [
# Terrible hack accessing internal members required to handle rrules correctly.
"SLF001",
]
[tool.ruff.lint.pydocstyle]
convention = "google"