-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
246 lines (213 loc) · 5.5 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# SPDX-FileCopyrightText: 2024 Daniel Biehl <daniel.biehl@imbus.de>
#
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = ["hatchling", "hatch-build-scripts"]
build-backend = "hatchling.build"
[project]
name = "robotframework-DotNetLibraryBase"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.8"
license = "Apache-2.0"
keywords = []
authors = [{ name = "Daniel Biehl", email = "daniel.biehl@imbus.de" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = ["robotframework>=6.0", "pythonnet>=3.0.0"]
[project.urls]
Documentation = "https://github.com/imbus/robotframework-dotnetlibrarybase#readme"
Issues = "https://github.com/unknown/robotframework-dotnetlibrarybase/issues"
Source = "https://github.com/unknown/robotframework-dotnetlibrarybase"
[tool.hatch.version]
path = "src/DotNetLibraryBase/__about__.py"
[[tool.hatch.build.hooks.build-scripts.scripts]]
commands = [
"dotnet clean -c release",
"dotnet clean -c debug",
"dotnet build -c release",
]
artifacts = {}
[tool.hatch.build]
dev-mode-dirs = ["src"]
[tool.hatch.build.targets.wheel]
only-include = ["src/DotNetLibraryBase"]
sources = ["src"]
# [tool.hatch.build.targets.sdist]
# only-include = ["src/DotNetLibraryBase"]
# sources = ["src"]
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
"robotframework-tidy>=4.11",
"robotframework-robocop>=5.0.0",
"ruff",
"mypy",
"black",
"GitPython",
"semantic-version",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:utests}"
test-cov = "coverage run -m pytest {args:utests}"
cov-report = ["- coverage combine", "coverage report"]
cov = ["test-cov", "cov-report"]
[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.types]
dependencies = ["mypy>=1.0.0"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/DotNetLibraryBase utests}"
[tool.hatch.envs.build]
skip-install = true
detached = true
python = "38"
dependencies = [
"GitPython",
"semantic-version",
"commitizen>=3.0.0",
"git-cliff>=2.2.0",
]
[tool.hatch.envs.build.scripts]
update-changelog = ["python scripts/update_changelog.py"]
update-git-versions = ["python scripts/update_git_versions.py"]
update-doc-links = ["python scripts/update_doc_links.py"]
package = ["python scripts/package.py"]
publish = ["python scripts/publish.py"]
extract-release-notes = ["python scripts/extract_release_notes.py"]
is-prerelease = ["python scripts/is_prerelease.py"]
bump = ["cz bump"]
[tool.coverage.run]
source_pkgs = ["DotNetLibraryBase", "utests"]
branch = true
parallel = true
omit = ["src/DotNetLibraryBase/__about__.py"]
[tool.coverage.paths]
dotnetlibrarybase = [
"src/DotNetLibraryBase",
"*/DotNetLibraryBase/src/robotframework_dotnetlibrarybase",
]
tests = ["utests", "*/DotNetLibraryBase/utests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
# ruff
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
ignore = ["E741", "N805", "N999", "RUF012", "RUF006", "ISC001"]
select = [
"E",
"F",
"W",
"I",
"N",
#"UP",
"YTT",
#"ANN",
#"BLE",
#"B",
#"A"
#"COM"
# "C4", # TODO enable this
"DTZ",
"T10",
# "EM",
"ISC",
"G",
#"INP",
"PIE",
# "T20",
"PT",
"Q",
"RET",
# "SIM", # TODO enable this
# "TID",
# "TCH",
# "ARG",
# "PTH", # TODO enable this
# "SLF", # TODO enable this
# "ERA", # TODO enable this
"RSE",
# "PL",
#"TRY",
"RUF",
# "TID"
]
[tool.ruff.lint.per-file-ignores]
#"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
detect-same-package = true
# known-first-party = ["robotcode"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
# black
[tool.black]
line-length = 120
target-version = ['py38']
# mypy
[tool.mypy]
python_version = "3.8"
strict = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unused_configs = true
warn_unreachable = true
implicit_reexport = false
implicit_optional = true
disallow_untyped_decorators = false
disallow_subclassing_any = false
explicit_package_bases = true
namespace_packages = true
exclude = [
'^\.mypy_cache/',
'^\.venv/',
'^\.hatch/',
"^build/",
"^dist/",
"^out/",
"^playground/",
"^scripts/",
]
# allow_untyped_calls = true
[[tool.mypy.overrides]]
module = ["robot.*", "clr", "System.*", "RobotFramework.*"]
ignore_missing_imports = true
no_implicit_reexport = false
# pyright
[tool.pyright]
exclude = ["**/.hatch", "**/node_modules", "**/__pycache__", "bundled/libs"]
typeCheckingMode = "off"
pythonVersion = "3.8"
reportMissingImports = "error"
[tool.commitizen]
name = "cz_conventional_commits"
bump_message = "chore(release): bump version $current_version → $new_version"
tag_format = "v$version"
version_scheme = "semver"
version_provider = "scm"
update_changelog_on_bump = false
# major_version_zero = true
changelog_incremental = true
changelog_merge_prerelease = true
gpg_sign = true
annotated_tag = true
pre_bump_hooks = [
# "hatch env remove lint",
"hatch run build:update-git-versions",
"hatch run build:update-changelog",
"git add .",
]