-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
285 lines (262 loc) · 5.75 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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
[tool.poetry]
authors = ["Andrew Udvare <[email protected]>"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
description = "Host-side of the extension to open any link or page URL in mpv via the browser context menu."
documentation = "https://tatsh.github.io/open-in-mpv/"
keywords = ["multimedia"]
include = ["man"]
license = "MIT"
name = "open-in-mpv"
readme = "README.md"
repository = "https://github.com/Tatsh/open-in-mpv"
version = "0.1.0"
[tool.poetry.dependencies]
python = ">=3.12,<4"
click = ">=8.0,<8.1.8"
platformdirs = "^4.3.6"
psutil = ">=5.9.5,<7.0.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = "^1.13.0"
ruff = "^0.7.1"
yapf = "^0.40.2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
doc8 = "^1.1.1"
docutils = "^0.21.2"
esbonio = "^0.16.5"
restructuredtext-lint = "^1.4.0"
sphinx = ">=7.2.6,<9.0.0"
sphinx-click = "^6.0.0"
sphinx-datatables = "^0.2.1"
sphinx-immaterial = "^0.12.4"
tomlkit = "^0.13.2"
[tool.poetry.group.tests]
optional = true
[tool.poetry.group.tests.dependencies]
coveralls = "^3.3.1"
mock = "^5.1.0"
pytest = "^8.3.3"
pytest-cov = ">=4.1,<6.0"
pytest-mock = "^3.12.0"
[tool.poetry.scripts]
open-in-mpv = "open_in_mpv:open_in_mpv"
open-in-mpv-test = "open_in_mpv:test_open"
open-in-mpv-install = "open_in_mpv:install"
open-in-mpv-uninstall = "open_in_mpv:uninstall"
[tool.coverage.report]
omit = ["conftest.py", "tests/test_*.py"]
show_missing = true
[tool.coverage.run]
branch = true
omit = ["conftest.py", "tests/test_*.py"]
[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.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.env.pytest"
django_find_project = false
mock_use_standalone_module = true
testpaths = ["tests"]
[tool.pyright]
deprecateTypingAliases = true
enableExperimentalFeatures = true
include = ["./open_in_mpv", "./tests"]
pythonPlatform = "Linux"
pythonVersion = "3.12"
reportCallInDefaultInitializer = "warning"
reportImplicitOverride = "warning"
reportImportCycles = "error"
reportMissingModuleSource = "error"
reportPropertyTypeMismatch = "error"
reportShadowedImports = "error"
reportUninitializedInstanceVariable = "error"
reportUnnecessaryTypeIgnoreComment = "none"
stubPath = "./.stubs"
typeCheckingMode = "off"
useLibraryCodeForTypes = false
[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",
"EM101",
"N818",
"PLR0912",
"PLR0913",
"PLR0914",
"PLR0915",
"PLR0917",
"PLR1702",
"PLR6301",
"S101",
"S404",
"S603",
"T201", # temporary
"TD002",
"TD003",
"TD004",
]
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]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]