-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
212 lines (177 loc) · 4.16 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "openjd-cli"
authors = [
{name = "Amazon Web Services"},
]
dynamic = ["version"]
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.9"
description = "Provides a command-line interface for working with Open Job Description templates."
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"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",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop"
]
dependencies = [
"openjd-sessions == 0.9.*",
"openjd-model == 0.5.*"
]
[project.urls]
Homepage = "https://github.com/OpenJobDescription/openjd-cli"
Source = "https://github.com/OpenJobDescription/openjd-cli"
[project.scripts]
openjd = "openjd:__main__.main"
[tool.hatch.build]
artifacts = [
"*_version.py",
]
only-packages = true
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
version_scheme = "post-release"
[tool.hatch.build.hooks.vcs]
version-file = "_version.py"
[tool.hatch.build.hooks.custom]
path = "hatch_version_hook.py"
[[tool.hatch.build.hooks.custom.copy_map]]
sources = [
"_version.py",
]
destinations = [
"src/openjd/cli",
]
[tool.hatch.build.targets.sdist]
packages = [
"src/openjd",
]
only-include = [
"src/openjd",
]
[tool.hatch.build.targets.sdist.force-include]
"src/openjd/__main__.py" = "openjd/__main__.py"
[tool.hatch.build.targets.wheel]
packages = [
"src/openjd",
]
only-include = [
"src/openjd",
]
[tool.hatch.build.targets.wheel.force-include]
"src/openjd/__main__.py" = "openjd/__main__.py"
[tool.mypy]
check_untyped_defs = false
show_error_codes = false
pretty = true
ignore_missing_imports = true
disallow_incomplete_defs = false
disallow_untyped_calls = false
show_error_context = true
strict_equality = false
python_version = "3.9"
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = false
# Tell mypy that there's a namespace package at src/openjd
namespace_packages = true
explicit_package_bases = true
mypy_path = "src"
# See: https://docs.pydantic.dev/mypy_plugin/
# - Helps mypy understand pydantic typing.
plugins = "pydantic.mypy"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
ignore = [
"E501",
# Double Check if this should be fixed
"E731",
]
[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
"classmethod",
# pydantic decorators are classmethod decorators
# suppress N805 errors on classes decorated with them
"pydantic.validator",
"pydantic.root_validator",
]
[tool.ruff.lint.isort]
known-first-party = [
"openjd",
]
[tool.black]
line-length = 100
[tool.pytest.ini_options]
xfail_strict = false
addopts = [
"-rfEx",
"--durations=5",
"--cov=src/openjd/cli",
"--color=yes",
"--cov-report=html:build/coverage",
"--cov-report=xml:build/coverage/coverage.xml",
"--cov-report=term-missing",
"--numprocesses=auto",
"--timeout=60"
]
[tool.coverage.run]
branch = true
parallel = true
[tool.coverage.paths]
source = [
"src/"
]
[tool.coverage.report]
show_missing = true
fail_under = 92
omit= [
"src/openjd/cli/_version.py"
]
[tool.semantic_release]
# Can be removed or set to true once we are v1
major_on_zero = false
tag_format = "{version}"
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = []
patch_tags = [
"chore",
"feat",
"fix",
"refactor",
]
[tool.semantic_release.publish]
upload_to_vcs_release = false
[tool.semantic_release.changelog]
template_dir = ".semantic_release"
[tool.semantic_release.changelog.environment]
trim_blocks = true
lstrip_blocks = true
[tool.semantic_release.branches.release]
match = "(mainline|release)"