forked from batocera-linux/batocera.linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (60 loc) · 1.77 KB
/
pyproject.toml
File metadata and controls
70 lines (60 loc) · 1.77 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
[dependency-groups]
deps = [
'pip>=25.1',
# These versions need to be kept in sync with the versions
# built by buildroot
'typing-extensions==4.15.0',
'PyYAML==6.0.2',
'ruamel.yaml==0.18.6',
'toml==0.10.2',
'pillow==11.0.0',
'configobj==5.0.8',
'requests==2.32.3',
'qrcode==8.0',
'ffmpeg-python @ git+https://github.com/kkroening/ffmpeg-python.git@df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6',
]
lint = [
'ruff==0.14.9',
'pyright[nodejs]==1.1.407',
]
dev = [
{ include-group = 'deps' },
{ include-group = 'lint' },
]
[tool.pyright]
exclude = [".venv*", "buildroot*", "output", "dl"]
stubPath = "python-stubs"
pythonVersion = "3.12"
pythonPlatform = "Linux"
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
reportMissingModuleSource = "none"
reportDeprecated = "warning"
reportUnnecessaryTypeIgnoreComment = "warning"
typeCheckingMode = "strict"
reportPrivateUsage = "none"
reportUnusedImport = "none"
reportUnusedVariable = "none"
reportImportCycles = "none"
enableExperimentalFeatures = true
deprecateTypingAliases = true
enableTypeIgnoreComments = false # Force pyright: ignore comments
[tool.ruff]
extend-exclude = [".venv*", "buildroot*", "output", "dl"]
line-length = 120
target-version = "py312"
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
preview = true
explicit-preview-rules = true
select = [
"TC", "PYI", "I", "UP", "F", "FA", "E", "W", "B", "C4", "SIM", "PTH", "G", "PERF", "PIE", "RET", "RUF"
]
ignore = ["SIM105", "SIM108", "E501", "RUF051"]
[tool.ruff.lint.isort]
extra-standard-library = ["typing_extensions", "_typeshed"]
known-first-party = ["configgen", "batocera_es_system_shared"]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]