-
Notifications
You must be signed in to change notification settings - Fork 337
/
pyproject.toml
64 lines (55 loc) · 1.72 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
[build-system]
requires = ["setuptools", "wheel"]
[tool.pytest.ini_options]
# Dump tracebacks if a test takes longer than X seconds
faulthandler_timeout = 60
# Hide logged warnings and errors in test output.
log_cli_level = "CRITICAL"
addopts = "--basetemp=_pytest_temp"
markers = [
"todo: Tests that are yet to be written",
"gtkui: Tests for GTK code",
"security: Security related tests",
"slow: Tests that are particularly slow",
"internet: Tests that require internet connectivity",
]
filterwarnings = [
"ignore::DeprecationWarning:gi",
"ignore::DeprecationWarning:twisted.internet.gireactor",
"ignore:twisted.web.resource.*:DeprecationWarning",
"ignore:Using readBody.*:DeprecationWarning",
"ignore:resume_data is deprecated.*:DeprecationWarning:deluge.core.alertmanager",
]
[tool.ruff]
line-length = 88
builtins = ["_", "_n", "__request__"]
extend-exclude = ["dist", "build"]
target-version = "py37"
[tool.ruff.format]
# Prefer single quotes over double quotes
quote-style = "single"
[tool.ruff.lint]
ignore = [
"N818", # error-suffix-on-exception-name
"E501", # Line-too-long, let formatter resolve it
]
select = [
"A", # flake8-builtins
"E", # pycodestyle
"F", # Pyflakes
"N", # pep8-naming
"W", # pycodestyle
"INT", # flake8-gettext
"I", # isort
]
[tool.ruff.lint.flake8-gettext]
extend-function-names = ["_n"]
[tool.ruff.lint.extend-per-file-ignores]
# E402 import not top of file (gi version check required before import)
"deluge/**/gtkui/*.py" = ["E402"]
"deluge/**/gtkui.py" = ["E402"]
"deluge/plugins/Stats/deluge_stats/graph.py" = ["E402"]
"deluge/ui/gtk3/*.py" = ["E402"]
[tool.pyright]
reportMissingImports = "information"
reportMissingModuleSource = "information"