-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (70 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (70 loc) · 2.04 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
[project]
name = "sonar-qube-gh-action"
version = "1.2.7"
description = "Demo of SonarQube GitHub Action"
authors = [{ name = "Aqib Niaz Bhat" }]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"structlog>=25.2.0",
]
[dependency-groups]
dev = [
"pytest-cov>=5.0.0",
"pyright>=1.1.381",
"ruff>=0.11.2",
"pytest>=8.3.5",
"pre-commit>=4.2.0",
]
[project.optional-dependencies]
build = [
# Ensures python-semantic-release GH Action can invoke 'uv build' in its container.
"uv ~= 0.10.2",
"python-semantic-release ~= 10.5.3"
]
[tool.semantic_release]
commit_parser = "conventional"
commit_parser_options = { default_bump_level = 2 }
allow_zero_version = true
major_on_zero = true
version_variables = ["pyproject.toml:version"]
build_command = """
python -m venv $HOME/.venv
source $HOME/.venv/bin/activate
pip install --upgrade pip
python -m pip install -e '.[build]'
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
uv build
"""
[tool.semantic_release.changelog]
default_templates = { changelog_file = "CHANGELOG.md" }
exclude_commit_patterns = [
'''ci(?:\([^)]*?\))?: .+''',
'''style(?:\([^)]*?\))?: .+''',
'''test(?:\([^)]*?\))?: .+''',
'''build\((?!deps\): .+)''',
'''Merged? .*''',
'''Initial Commit.*''',
# Old semantic-release version commits
'''^\d+\.\d+\.\d+''',
]
mode = "update"
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false
prerelease_token = "rc"
[tool.semantic_release.publish]
upload_to_vcs_release = true
[tool.semantic_release.remote.token]
env = "SEMVER_GH_TOKEN"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.distutils.bdist_wheel]
universal = true
[project.urls]
Repository = "https://github.com/aqib-oss/sonar-qube-gh-action"
Documentation = "https://github.com/aqib-oss/sonar-qube-gh-action/blob/main/README.md"
Changelog = "https://github.com/aqib-oss/sonar-qube-gh-action/blob/main/CHANGELOG.md"
Releases = "https://github.com/aqib-oss/sonar-qube-gh-action/releases"