forked from ansible/ansible-compat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
132 lines (119 loc) · 3.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
[build-system]
requires = [
"setuptools >= 61.0", # PEP-621
"setuptools_scm[toml] >= 7.0.0",
]
build-backend = "setuptools.build_meta"
[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.8"
dynamic = ["version"]
name = "ansible-compat"
description = "Ansible compatibility goodies"
readme = "README.md"
authors = [{ "name" = "Sorin Sbarnea", "email" = "ssbarnea@redhat.com" }]
maintainers = [{ "name" = "Sorin Sbarnea", "email" = "ssbarnea@redhat.com" }]
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 :: OS Independent",
"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",
"Topic :: System :: Systems Administration",
"Topic :: Software Development :: Bug Tracking",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
keywords = ["ansible"]
dependencies = [
# https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html
"ansible-core>=2.12",
"packaging",
"PyYAML",
"subprocess-tee>=0.4.1",
"jsonschema>=4.6.0",
]
[project.urls]
homepage = "https://github.com/ansible/ansible-compat"
documentation = "https://ansible-compat.readthedocs.io/"
repository = "https://github.com/ansible/ansible-compat"
changelog = "https://github.com/ansible/ansible-compat/releases"
[project.optional-dependencies]
docs = [
"argparse-manpage",
"black",
"cairosvg",
"markdown-include",
"mkdocs",
"mkdocs-exclude",
"mkdocs-material",
"mkdocs-material-extensions",
"mkdocstrings",
"mkdocstrings-python",
"pillow",
"pymdown-extensions",
"slugify",
]
test = ["coverage", "pip-tools", "pytest>=7.2.0", "pytest-mock", "pytest-plus"]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
fail_under = 92
skip_covered = true
show_missing = true
[tool.mypy]
python_version = 3.8
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
exclude = "test/local-content"
[[tool.mypy.overrides]]
module = "ansible.*"
ignore_missing_imports = true
[tool.isort]
profile = "black"
[tool.pylint.BASIC]
good-names = [
"f", # filename
"i",
"j",
"k",
"ns", # namespace
"ex",
"Run",
"_"
]
[tool.pylint.IMPORTS]
preferred-modules = ["unittest:pytest"]
[tool.pylint."MESSAGES CONTROL"]
disable = [
# On purpose disabled as we rely on black
"line-too-long",
# local imports do not work well with pre-commit hook
"import-error",
# Temporary disable duplicate detection we remove old code from prerun
"duplicate-code",
]
[tool.pytest.ini_options]
# ensure we treat warnings as error
filterwarnings = ["error"]
[tool.setuptools_scm]
local_scheme = "no-local-version"