forked from ansible/ansible-creator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
130 lines (110 loc) · 3.23 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 45",
"setuptools_scm[toml]>=6.2"
]
[project]
authors = [{"email" = "[email protected]", "name" = "Nilashish Chakarborty"}]
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',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python',
'Topic :: Software Development :: Code Generators',
'Topic :: Utilities'
]
description = "A CLI tool for scaffolding Ansible Content."
dynamic = ["dependencies", "optional-dependencies", "version"]
keywords = ["ansible"]
license = {text = "Apache"}
maintainers = [{"email" = "[email protected]", "name" = "Ansible by Red Hat"}]
name = "ansible-creator"
readme = "README.md"
requires-python = ">=3.10"
[project.scripts]
ansible-creator = "ansible_creator.cli:main"
[project.urls]
changelog = "https://github.com/ansible-community/ansible-creator/releases"
documentation = "https://ansible-creator.readthedocs.io/en/latest/"
homepage = "https://github.com/ansible-community/ansible-creator"
repository = "https://github.com/ansible-community/ansible-creator"
[tool.black]
exclude = "tests/fixtures"
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]
omit = ["tests/*"]
[tool.mypy]
files = ["src"]
[tool.pydoclint]
allow-init-docstring = true
[tool.pylint]
[tool.pylint.MASTER]
ignore-patterns = 'test_*'
[tool.pylint.format]
max-line-length = 100
[tool.pylint.master]
good-names = "i,j,k,ex,Run,_,f,fh"
ignore = [
"_version.py" # built by setuptools_scm
]
jobs = 0
no-docstring-rgx = "__.*__"
[tool.pylint.messages_control]
disable = [
"C0114", # missing-module-docstring
"E0602", # undefined-variable / ruff F821
"R0913",
"too-few-public-methods",
"too-many-instance-attributes",
"too-many-locals"
]
[tool.ruff]
builtins = ["__"]
exclude = ['tests']
fix = true
ignore = [
"C901",
"PTH100",
"PTH103",
"PTH108",
"PTH110",
"PTH111",
"PTH113",
"PTH118",
"PTH123",
"TRY400"
]
line-length = 100
select = ["ALL"]
target-version = "py39"
[tool.ruff.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.isort]
lines-after-imports = 2 # Ensures consistency for cases when there's variable vs function/class definitions after imports
lines-between-types = 1 # Separate import/from with 1 line
[tool.ruff.per-file-ignores]
# S101 Allow assert in tests
# S602 Allow shell in test
# T201 Allow print in tests
"tests/**" = ["S101", "S602", "T201"]
[tool.ruff.pydocstyle]
convention = "pep257"
[tool.setuptools.dynamic]
dependencies = {file = ".config/requirements.in"}
optional-dependencies.docs = {file = [".config/requirements-docs.in"]}
optional-dependencies.test = {file = [".config/requirements-test.in"]}
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/ansible_creator/_version.py"
[tool.tomlsort]
in_place = true
sort_inline_tables = true
sort_table_keys = true