-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
173 lines (153 loc) · 5.29 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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[build-system]
requires = [
"setuptools >= 63.0.0", # required by pyproject+setuptools_scm integration
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
]
build-backend = "setuptools.build_meta"
[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.8"
dynamic = ["version", "dependencies", "optional-dependencies"]
name = "pia"
description = "(Alternative) Package Installer for Ansible"
readme = "README.md"
authors = [{ "name" = "Sorin Sbarnea", "email" = "[email protected]" }]
maintainers = [
{ "name" = "Sorin Sbarnea", "email" = "[email protected]" }
]
license = { text = "MIT" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python",
"Topic :: System :: Systems Administration",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
keywords = ["ansible"]
[project.urls]
homepage = "https://github.com/pycontribs/pia"
repository = "https://github.com/pycontribs/pia"
changelog = "https://github.com/pycontribs/pia/releases"
[project.scripts]
pia = "pia.__main__:main"
[tool.black]
target-version = ["py39"]
[tool.codespell]
skip = ".tox,.mypy_cache,build,.git,.eggs,pip-wheel-metadata"
[tool.coverage.run]
source = ["src"]
branch = true
parallel = true
concurrency = ["multiprocessing", "thread"]
data_file = ".tox/.coverage"
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
fail_under = 35
skip_covered = true
[tool.isort]
profile = "black"
known_third_party = "ansible,pytest,setuptools,yaml"
# https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
[tool.mypy]
python_version = 3.9
color_output = true
error_summary = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_any_generics = true
# disallow_any_unimported = True
# warn_redundant_casts = True
# warn_return_any = True
# warn_unused_configs = True
# site-packages is here to help vscode mypy integration getting confused
exclude = "(build|dist|test/local-content|site-packages|~/.pyenv)"
[[tool.mypy.overrides]]
module = ["ansible.*", "yamllint.*", "pia._version"]
ignore_missing_imports = true
ignore_errors = true
[tool.pylint.MAIN]
extension-pkg-allow-list = ["black.parsing"]
[tool.pylint.IMPORTS]
preferred-modules = ["py:pathlib", "unittest:pytest"]
[tool.pylint.MASTER]
# Ignore as being generated:
ignore-paths = "^src/pia/_version.*$"
[tool.pylint."MESSAGES CONTROL"]
disable = [
# On purpose disabled as we rely on black
"line-too-long",
]
[tool.pylint.TYPECHECK]
# pylint is unable to detect Namespace attributes and will throw a E1101
generated-members = "options.*"
[tool.pylint.SUMMARY]
# We don't need the score spamming console, as we either pass or fail
score = "n"
# spell-checker:ignore filterwarnings norecursedirs optionflags
[tool.pytest.ini_options]
# do not add options here as this will likely break either console runs or IDE
# integration like vscode or pycharm
addopts = "-p no:pytest_cov"
# https://code.visualstudio.com/docs/python/testing
# coverage is re-enabled in `tox.ini`. That approach is safer than
# `--no-cov` which prevents activation from tox.ini and which also fails
# when plugin is effectively missing.
doctest_optionflags = ["ALLOW_UNICODE", "ELLIPSIS"]
filterwarnings = [
"error",
# Ansible originated
"ignore:The _yaml extension module is now located at yaml._yaml and its location is subject to change:DeprecationWarning:",
# Ansible insides on py310:
"ignore:_SixMetaPathImporter:ImportWarning",
"ignore:_AnsibleCollectionFinder:ImportWarning",
"ignore:_AnsibleCollectionRootPkgLoader:ImportWarning",
"ignore:_AnsibleCollectionNSPkgLoader.exec_module:ImportWarning",
"ignore:_AnsibleCollectionPkgLoader.exec_module:ImportWarning",
"ignore:_AnsiblePathHookFinder.find_spec:ImportWarning",
"ignore:The distutils package is deprecated and slated for removal:DeprecationWarning",
]
minversion = "4.6.6"
norecursedirs = [
"build",
"collections",
"dist",
"docs",
".cache",
".eggs",
".git",
".github",
".tox",
"*.egg",
]
# Using --pyargs instead of testpath as we embed some tests
# See: https://github.com/pytest-dev/pytest/issues/6451#issuecomment-687043537
# testpaths =
xfail_strict = true
[tool.setuptools.dynamic]
optional-dependencies.test = { file = [".config/requirements-test.txt"] }
optional-dependencies.lock = { file = [".config/requirements-lock.txt"] }
dependencies = { file = [".config/requirements.in"] }
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/pia/_version.py"