-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
105 lines (96 loc) · 1.87 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
"setuptools-scm",
]
[project]
name = "cachi2"
license = {text = "GPLv3+"}
requires-python = ">=3.9"
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = [
"version",
]
dependencies = [
"aiohttp",
"aiohttp-retry",
"backoff",
"beautifulsoup4",
"gitpython",
"packageurl-python",
"packaging",
"pyarn",
"pydantic",
"pypi-simple",
"pyarn",
"pyyaml",
"requests",
"semver",
"tomli",
"typer",
"createrepo-c",
]
[project.optional-dependencies]
dev = [
"bandit",
"black",
"click",
"flake8",
"flake8-docstrings",
"isort[colors]",
"mypy",
"typing-extensions",
]
test = [
"GitPython",
"jsonschema",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-env",
"pyyaml",
]
[project.scripts]
cachi2 = "cachi2.interface.cli:app"
[tool.setuptools]
packages = ["cachi2"]
[tool.setuptools_scm]
version_scheme = "post-release"
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
python_version = "3.9"
plugins = ["pydantic.mypy"]
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
# TODO: pyarn does not currently have type annotations
[[tool.mypy.overrides]]
module = "pyarn.*"
ignore_missing_imports = true
[tool.coverage.report]
skip_covered = true
show_missing = true
fail_under = 90
exclude_lines = [
"def __repr__",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"return NotImplemented",
]
[tool.bandit]
skips = [
"B404", # import subprocess
"B603", # subprocess_without_shell_equals_true
]