-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
158 lines (135 loc) · 3.72 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
[project]
name = "uvmono"
version = "0.3.9"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "Jens Peder Meldgaard", email = "[email protected]" },
]
requires-python = ">=3.11"
dependencies = [
"fire>=0.7.0",
"jinja2",
"mergedeep>=1.3.4",
"pre-commit>=4.0.1",
"rich>=13.9.4",
"tomli-w>=1.1.0",
]
[project.license]
file = "LICENSE"
[project.scripts]
uvmono = "uvmono:main"
commit = "uvmono:commit"
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
exclude = [
"packages",
".docker",
".github",
".devcontainer",
]
[tool.uv.workspace]
members = [
"packages/package-b",
"packages/package-c",
"packages/package-d",
"develop-eggs", "packages/package-a",
]
[tool.pytest.ini_options]
addopts = "--cov-report=term --cov-report=xml:coverage.xml --cov=uvmono -ra\n-vv"
[tool.coverage.report]
fail_under = 0
show_missing = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
]
[tool.commitizen]
name = "cz_customize"
use_shortcuts = true
version_scheme = "pep440"
version_provider = "pep621"
update_changelog_on_bump = true
major_version_zero = true
bump_message = "bump: uvmono version $current_version → $new_version"
tag_format = "uvmono-$version"
[tool.commitizen.customize]
message_template = "{{change_type}}(uvmono): {{message}}"
example = "feature: this feature enable customize through config file"
schema = "<change_type>: <body>"
schema_pattern = "(fix|feat|docs|style|refactor|perf|test|build|ci)(\\(uvmono\\)):(\\s.*)"
bump_pattern = "^(break|new|fix|hotfix)"
change_type_order = [
"BREAKING CHANGE",
"feat",
"fix",
"refactor",
"perf",
]
commit_parser = "^(?P<change_type>fix|feat|docs|style|refactor|perf|test|build|ci):\\s(?P<message>.*)?"
changelog_pattern = "^(feat|fix)\\(uvmono\\)(!)?:"
[tool.commitizen.customize.bump_map]
break = "MAJOR"
new = "MINOR"
fix = "PATCH"
hotfix = "PATCH"
[tool.commitizen.customize.change_type_map]
feat = "Feat"
fix = "Fix"
refactor = "Refactor"
perf = "Perf"
[[tool.commitizen.customize.questions]]
type = "list"
name = "change_type"
message = "Select the type of change you are committing"
[[tool.commitizen.customize.questions.choices]]
key = "x"
value = "fix"
name = "fix: A bug fix. Correlates with PATCH in SemVer"
[[tool.commitizen.customize.questions.choices]]
key = "f"
value = "feat"
name = "feat: A new feature. Correlates with MINOR in SemVer"
[[tool.commitizen.customize.questions.choices]]
key = "d"
value = "docs"
name = "docs: Documentation only changes"
[[tool.commitizen.customize.questions.choices]]
key = "s"
value = "style"
name = "style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
[[tool.commitizen.customize.questions.choices]]
key = "r"
value = "refactor"
name = "refactor: A code change that neither fixes a bug nor adds a feature"
[[tool.commitizen.customize.questions.choices]]
key = "p"
value = "perf"
name = "perf: A code change that improves performance"
[[tool.commitizen.customize.questions.choices]]
key = "t"
value = "test"
name = "test: Adding missing or correcting existing tests"
[[tool.commitizen.customize.questions.choices]]
key = "b"
value = "build"
name = "build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)"
[[tool.commitizen.customize.questions.choices]]
key = "c"
value = "ci"
name = "ci: Changes to CI configuration files and scripts (example scopes: GitLabCI)"
[[tool.commitizen.customize.questions]]
type = "input"
name = "message"
message = "Message:"
[dependency-groups]
dev = [
"commitizen>=4.1.0",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"ruff>=0.9.1",
]