-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
250 lines (232 loc) · 4.76 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
[tool.poetry]
authors = ["Andrew Udvare <audvare@gmail.com>"]
classifiers = ['Typing :: Typed']
description = "Typing stubs for yt-dlp."
license = "MIT"
name = "yt-dlp-types"
packages = [{ include = "yt_dlp-stubs" }]
readme = "README.md"
version = "0.0.13"
[tool.poetry.dependencies]
python = ">=3.10,<4"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
commitizen = "^3.30.0"
mypy = "^1.4.1"
rope = "^1.9.0"
ruff = "^0.7.2"
toml = "^0.10.2"
yapf = ">=0.40.1,<0.44.0"
yt-dlp = ">=2023.6.22,<2025.0.0"
[tool.poetry.group.tests.dependencies]
mock = "^5.0.1"
pytest = ">=7.3,<9.0"
pytest-mock = "^3.10.0"
[tool.commitizen]
tag_format = "v$version"
version_files = ["README.md", "package.json"]
version_provider = "poetry"
[tool.doc8]
max-line-length = 100
[tool.mypy]
cache_dir = "~/.cache/mypy"
explicit_package_bases = true
mypy_path = ".stubs"
platform = "linux"
python_version = "3.12"
show_column_numbers = true
strict = true
strict_optional = true
warn_unreachable = true
[tool.pyright]
deprecateTypingAliases = true
enableExperimentalFeatures = true
include = ["./tatsh_misc_utils", "./tests"]
pythonPlatform = "Linux"
pythonVersion = "3.11"
reportCallInDefaultInitializer = "warning"
reportImplicitOverride = "warning"
reportImportCycles = "error"
reportMissingModuleSource = "error"
reportPropertyTypeMismatch = "error"
reportShadowedImports = "error"
reportUninitializedInstanceVariable = "error"
reportUnnecessaryTypeIgnoreComment = "none"
stubPath = "./.stubs"
typeCheckingMode = "off"
useLibraryCodeForTypes = false
[tool.pytest.ini_options]
mock_use_standalone_module = true
[tool.ruff]
cache-dir = "~/.cache/ruff"
extend-exclude = []
force-exclude = true
line-length = 100
namespace-packages = ["docs", "tests"]
target-version = "py312"
unsafe-fixes = true
[tool.ruff.lint]
extend-select = [
"A",
"AIR",
"ANN",
"ARG",
"ASYNC",
"B",
"BLE",
"C4",
"C90",
"COM",
"CPY",
"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",
"YTT",
]
ignore = [
"A005",
"ANN401",
"ARG001",
"ARG002",
"ARG004",
"C901",
"COM812",
"CPY001",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D203",
"D204",
"D212",
"E303",
"EM101",
"FBT001",
"I001",
"N818",
"PLR0912",
"PLR0913",
"PLR0914",
"PLR0915",
"PLR0917",
"PLR1702",
"PLR6301",
"S101",
"S404",
"S405",
"S603",
"T201", # temporary
"TD002",
"TD003",
"TD004",
"TID252",
]
preview = true
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.isort]
case-sensitive = true
combine-as-imports = true
from-first = true
[tool.ruff.lint.pep8-naming]
extend-ignore-names = ["test_*"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.yapf]
align_closing_bracket_with_visual_indent = true
allow_multiline_dictionary_keys = false
allow_multiline_lambdas = false
allow_split_before_dict_value = true
blank_line_before_class_docstring = false
blank_line_before_module_docstring = false
blank_line_before_nested_class_or_def = false
blank_lines_around_top_level_definition = 2
coalesce_brackets = true
column_limit = 100
continuation_align_style = "SPACE"
continuation_indent_width = 4
dedent_closing_brackets = false
disable_ending_comma_heuristic = false
each_dict_entry_on_separate_line = true
indent_dictionary_value = true
indent_width = 4
join_multiple_lines = true
no_spaces_around_selected_binary_operators = false
space_between_ending_comma_and_closing_bracket = false
spaces_around_default_or_named_assign = false
spaces_around_power_operator = true
spaces_before_comment = 2
split_all_comma_separated_values = false
split_arguments_when_comma_terminated = false
split_before_bitwise_operator = true
split_before_closing_bracket = true
split_before_dict_set_generator = true
split_before_dot = false
split_before_expression_after_opening_paren = false
split_before_first_argument = false
split_before_logical_operator = true
split_before_named_assigns = true
split_complex_comprehension = false
split_penalty_after_opening_bracket = 30
split_penalty_after_unary_operator = 10000
split_penalty_before_if_expr = 0
split_penalty_bitwise_operator = 300
split_penalty_comprehension = 80
split_penalty_excess_character = 7000
split_penalty_for_added_line_split = 30
split_penalty_import_names = 0
split_penalty_logical_operator = 300
use_tabs = false
[tool.yapfignore]
ignore_patterns = ["node_modules/**"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"