-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml.jinja
More file actions
133 lines (120 loc) · 2.74 KB
/
pyproject.toml.jinja
File metadata and controls
133 lines (120 loc) · 2.74 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# Define streamdeck plugin settings here.
[tool.streamdeck]
action_scripts = [
{%- for path in action_scripts_paths.split() %}
"{{ path }}",
{%- endfor %}
]
# Add type annotations to your Python programs, and use mypy to type check them.
[tool.mypy]
files = "**"
ignore_missing_imports = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict = true
warn_unreachable = true
# Linting and code formatting
[tool.ruff]
src=["**"]
line-length=100 # Same as Black
indent-width = 4
target-version="py312"
[tool.ruff.lint]
preview=false
fixable=["ALL"]
select = [
"A",
"AIR",
"ANN",
"ARG",
"ASYNC",
"B",
"BLE",
"C4",
"C90",
"D",
"DJ",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FA",
"FBT",
"FIX",
"FLY",
# "FURB",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"LOG",
"N",
"NPY",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"T20",
"TCH",
"TD",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
ignore = [
"ANN101",
"ANN204",
"ANN401",
"B024",
"COM",
"CPY001",
"E501",
"ISC001",
"TD002",
"TD003",
]
unfixable = [
"ERA",
"F841",
"RET504",
# "F401",
]
[tool.ruff.lint.mccabe]
max-complexity = 25
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-args=10
[tool.ruff.lint.isort]
known-first-party = ["app"]
lines-after-imports = 2
# required-imports = []
[tool.ruff.format]
preview = false
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"