forked from systemd/mkosi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (75 loc) · 1.74 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "mkosi"
authors = [
{name = "mkosi contributors", email = "systemd-devel@lists.freedesktop.org"},
]
version = "24.3"
description = "Build Bespoke OS Images"
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
[project.optional-dependencies]
bootable = [
"pefile >= 2021.9.3",
]
[project.scripts]
mkosi = "mkosi.__main__:main"
mkosi-initrd = "mkosi.initrd:main"
mkosi-sandbox = "mkosi.sandbox:main"
[tool.setuptools]
packages = [
"mkosi",
"mkosi.distributions",
"mkosi.installer",
"mkosi.resources",
]
[tool.setuptools.package-data]
"mkosi.resources" = [
"completion.*",
"man/*",
"mkosi-initrd/**/*",
"mkosi-tools/**/*",
"mkosi-vm/**/*",
"repart/**/*",
]
[tool.isort]
profile = "black"
include_trailing_comma = true
multi_line_output = 3
py_version = "39"
[tool.pyright]
pythonVersion = "3.9"
[tool.mypy]
python_version = 3.9
# belonging to --strict
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_return_any = true
no_implicit_reexport = true
# extra options not in --strict
pretty = true
show_error_codes = true
show_column_numbers = true
warn_unreachable = true
strict_equality = true
[tool.ruff]
target-version = "py39"
line-length = 109
lint.select = ["E", "F", "I", "UP"]
[tool.pytest.ini_options]
markers = [
"integration: mark a test as an integration test."
]
addopts = "-m \"not integration\""