-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
179 lines (159 loc) · 5.28 KB
/
pyproject.toml
File metadata and controls
179 lines (159 loc) · 5.28 KB
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
[project]
name = "jentic-openapi-tools"
version = "1.0.0-alpha.49"
description = "Workspace root for Jentic OpenAPI Tools"
readme = "README.md"
authors = [{ name = "Jentic", email = "hello@jentic.com" }]
license = {text = "Apache-2.0"}
requires-python = ">=3.11"
dependencies = [
"jentic-openapi-common~=1.0.0-alpha.49",
"jentic-openapi-datamodels~=1.0.0-alpha.49",
"jentic-openapi-parser~=1.0.0-alpha.49",
"jentic-openapi-transformer~=1.0.0-alpha.49",
"jentic-openapi-transformer-redocly~=1.0.0-alpha.49",
"jentic-openapi-traverse~=1.0.0-alpha.49",
"jentic-openapi-validator~=1.0.0-alpha.49",
"jentic-openapi-validator-redocly~=1.0.0-alpha.49",
"jentic-openapi-validator-spectral~=1.0.0-alpha.49",
"jentic-openapi-validator-speclynx~=1.0.0-alpha.33"
]
[project.urls]
Homepage = "https://github.com/jentic/jentic-openapi-tools"
# Development-only dependencies (will not be published)
[dependency-groups]
dev = [
"pre-commit>=4.3,<4.6",
"ruff>=0.14.1,<0.16.0",
"pyright~=1.1.407",
"pytest>=8.4.2,<9.1.0",
"python-semantic-release>=10.4.1,<10.6.0",
"poethepoet>=0.37,<0.43",
]
[tool.poe.tasks]
[tool.poe.tasks.lint]
sequence = [
{ shell = "ruff check ${GITHUB_ACTIONS:+--output-format=github}" },
{ cmd = "ruff format --check --diff"}
]
[tool.poe.tasks."lint:fix"]
sequence = [
{ cmd = "ruff check --fix" },
{ cmd = "ruff format" },
]
[tool.poe.tasks.typecheck]
sequence = [
{ cmd = "pyright" }
]
[tool.poe.tasks.test]
sequence = [
{ cmd = "uv run --all-packages pytest --import-mode=importlib" }
]
[tool.uv]
package = true
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
jentic-openapi-common = { workspace = true }
jentic-openapi-datamodels = { workspace = true }
jentic-openapi-parser = { workspace = true }
jentic-openapi-transformer = { workspace = true }
jentic-openapi-transformer-redocly = { workspace = true }
jentic-openapi-traverse = { workspace = true }
jentic-openapi-validator = { workspace = true }
jentic-openapi-validator-redocly = { workspace = true }
jentic-openapi-validator-spectral = { workspace = true }
jentic-openapi-validator-speclynx = { workspace = true }
[build-system]
requires = ["setuptools>=75.8,<82.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = []
license-files = ["LICENSE", "NOTICE"]
[tool.ruff]
target-version = "py311"
line-length = 100
src = [
"packages/jentic-openapi-common/src",
"packages/jentic-openapi-datamodels/src",
"packages/jentic-openapi-parser/src",
"packages/jentic-openapi-traverse/src",
"packages/jentic-openapi-transformer/src",
"packages/jentic-openapi-transformer-redocly/src",
"packages/jentic-openapi-validator/src",
"packages/jentic-openapi-validator-spectral/src",
"packages/jentic-openapi-validator-redocly/src",
"packages/jentic-openapi-validator-speclynx/src",
]
[tool.ruff.lint]
extend-select = ["I"]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.pyright]
include = ["packages/*/src/**", "packages/*/tests/**"]
pythonVersion = "3.11"
typeCheckingMode = "standard"
# Python Semantic Release Configuration
[tool.semantic_release]
# Enable monorepo mode
monorepo = true
# Use conventional commits
commit_parser = "conventional"
# Version variables to update in files
version_variables = []
# Create changelog
build_command = ""
# Don't build here, we'll build separately
upload_to_vcs_release = true
# Enable GitHub releases
# Use semantic versioning
major_on_zero = true
# Branch configuration
branch = "main"
# Tag format
tag_format = "v{version}"
# Allow first release from current version
allow_zero_version = true
# Version files to update (using version_toml for TOML parsing)
version_toml = [
"pyproject.toml:project.version",
"packages/jentic-openapi-common/pyproject.toml:project.version",
"packages/jentic-openapi-datamodels/pyproject.toml:project.version",
"packages/jentic-openapi-parser/pyproject.toml:project.version",
"packages/jentic-openapi-traverse/pyproject.toml:project.version",
"packages/jentic-openapi-transformer/pyproject.toml:project.version",
"packages/jentic-openapi-transformer-redocly/pyproject.toml:project.version",
"packages/jentic-openapi-validator/pyproject.toml:project.version",
"packages/jentic-openapi-validator-spectral/pyproject.toml:project.version",
"packages/jentic-openapi-validator-redocly/pyproject.toml:project.version",
"packages/jentic-openapi-validator-speclynx/pyproject.toml:project.version",
]
# Commit author for version commits
commit_author = "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
# Commit message template for version commits
commit_message = "chore(release): cut the v{version} release"
# Define what constitutes breaking changes, features, and fixes
[tool.semantic_release.changelog]
exclude_commit_patterns = [
"^docs:",
"^style:",
"^refactor:",
"^test:",
"^build:",
"^ci:",
]
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
# Remote configuration
[tool.semantic_release.remote]
name = "origin"
type = "github"
# Branches configuration
[tool.semantic_release.branches.main]
match = "main"
prerelease = true
prerelease_token = "alpha"
# Publishing configuration - disable built-in publishing since we use uv
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*.whl", "dist/*.tar.gz"]
upload_to_vcs_release = true