forked from containers/podman-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (143 loc) · 3.61 KB
/
pyproject.toml
File metadata and controls
155 lines (143 loc) · 3.61 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[build-system]
requires = ["setuptools>=46.4"]
build-backend = "setuptools.build_meta"
[project]
name = "podman"
dynamic = ["version"]
description = "Bindings for Podman RESTful API"
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.9"
authors = [
{ name = "Brent Baude" },
{ name = "Jhon Honce", email = "jhonce@redhat.com" },
{ name = "Urvashi Mohnani" },
{ name = "Nicola Sella", email = "nsella@redhat.com" },
]
keywords = [
"libpod",
"podman",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# compatible releases
# ~= with version numbers
dependencies = [
"requests >=2.24",
"tomli>=1.2.3; python_version<'3.11'",
"urllib3",
]
[project.optional-dependencies]
progress_bar = [
"rich >= 12.5.1",
]
docs = [
"sphinx"
]
test = [
"coverage",
"fixtures",
"pytest",
"requests-mock",
"tox",
]
[project.urls]
"Bug Tracker" = "https://github.com/containers/podman-py/issues"
Homepage = "https://github.com/containers/podman-py"
"Libpod API" = "https://docs.podman.io/en/latest/_static/api.html"
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
testpaths = [
"podman/tests",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["podman*"]
[tool.setuptools.dynamic]
version = {attr = "podman.version.__version__"}
[tool.ruff]
line-length = 100
src = ["podman"]
# This is the section where Black is mostly replaced with Ruff
[tool.ruff.format]
exclude = [
".git",
".history",
".tox",
".venv",
"build",
"dist",
"docs",
"hack",
]
quote-style = "preserve"
[tool.ruff.lint]
select = [
# More stuff here https://docs.astral.sh/ruff/rules/
"F", # Pyflakes
"E", # Pycodestyle Error
"W", # Pycodestyle Warning
"N", # PEP8 Naming
"UP", # Pyupgrade
# TODO "ANN",
# TODO "S", # Bandit
"B", # Bugbear
"A", # flake-8-builtins
"YTT", # flake-8-2020
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLW", # Pylint Warning
]
# Some checks should be enabled for code sanity disabled now
# to avoid changing too many lines
ignore = [
"N818", # TODO Error Suffix in exception name
]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["copyright", "all"]
[tool.ruff.lint.per-file-ignores]
"podman/tests/*.py" = ["S"]
[tool.mypy]
install_types = true
non_interactive = true
allow_redefinition = true
no_strict_optional = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"podman.api.adapter_utils",
"podman.api.client",
"podman.api.ssh",
"podman.api.tar_utils",
"podman.api.uds",
"podman.domain.config",
"podman.domain.containers",
"podman.domain.containers_create",
"podman.domain.events",
"podman.domain.images_build",
"podman.domain.images_manager",
"podman.domain.manager",
"podman.domain.manifests",
"podman.domain.pods_manager",
"podman.domain.registry_data",
"podman.errors.exceptions"
]
ignore_errors = true
[tool.coverage.report]
exclude_also = [
"unittest.main()",
]