-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
106 lines (93 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["flit_core >=3.7,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pycargoebuild"
authors = [{name = "Michał Górny", email = "[email protected]"}]
license = {text = "GPL-2.0-or-later"}
classifiers = [
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
]
dynamic = ["version", "description"]
readme = "README.rst"
requires-python = ">=3.9"
dependencies = [
"license_expression",
"tomli >= 1.2.3; python_version < '3.11'",
]
[project.optional-dependencies]
pretty-log = ["rich"]
test = [
"pytest",
]
[project.scripts]
pycargoebuild = "pycargoebuild.__main__:entry_point"
[project.urls]
Homepage = "https://github.com/projg2/pycargoebuild/"
[tool.flit.external-data]
directory = "data"
[tool.flit.sdist]
include = [
"COPYING",
"integration_test",
"test",
"tox.ini",
]
[tool.mypy]
disallow_untyped_defs = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = [
"integration_test.*",
"test.*",
]
# requiring explicit types for all test methods would be cumbersome
disallow_untyped_defs = false
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"license_expression.*",
"portage.*",
"rich.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = [
"test",
]
[tool.ruff]
line-length = 80
[tool.ruff.lint]
extend-select = [
"E",
# "N",
"W",
"I",
# "UP",
# "ANN",
# "B",
"A",
# "COM",
"CPY",
"C4",
"EXE",
"ISC",
# "PIE",
# "PT",
"Q",
# "RSE",
"RET",
"SLOT",
# "SIM",
"TCH",
# "ARG",
# "ERA",
# "PGH",
# "PL",
# "PERF",
"FURB",
# "RUF",
]
[tool.ruff.lint.flake8-copyright]
min-file-size = 1
notice-rgx = "\\(c\\) \\d{4}(-\\d{4})?"