forked from systemd/mkosi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (65 loc) · 1.54 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
[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 = "18"
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"
[tool.setuptools]
packages = [
"mkosi",
"mkosi.distributions",
"mkosi.installer",
"mkosi.resources",
]
[tool.setuptools.package-data]
"*" = ["*.conf", "mkosi.md", "mkosi.1"]
[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
allow_redefinition = true
strict_equality = true
[[tool.mypy.overrides]]
module = ["argcomplete"]
ignore_missing_imports = true
[tool.ruff]
target-version = "py39"
line-length = 119
select = ["E", "F", "I", "UP"]