Skip to content

Commit 3f6023a

Browse files
committed
test(providers/uv_provider): add test case test_uv_provider
1 parent 2a15388 commit 3f6023a

File tree

6 files changed

+480
-19
lines changed

6 files changed

+480
-19
lines changed

commitizen/providers/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from commitizen.providers.pep621_provider import Pep621Provider
1919
from commitizen.providers.poetry_provider import PoetryProvider
2020
from commitizen.providers.scm_provider import ScmProvider
21+
from commitizen.providers.uv_provider import UvProvider
2122

2223
__all__ = [
2324
"get_provider",
@@ -28,6 +29,7 @@
2829
"Pep621Provider",
2930
"PoetryProvider",
3031
"ScmProvider",
32+
"UvProvider",
3133
]
3234

3335
PROVIDER_ENTRYPOINT = "commitizen.provider"

pyproject.toml

+10-19
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ npm = "commitizen.providers:NpmProvider"
7474
pep621 = "commitizen.providers:Pep621Provider"
7575
poetry = "commitizen.providers:PoetryProvider"
7676
scm = "commitizen.providers:ScmProvider"
77+
uv = "commitizen.providers:UvProvider"
7778

7879
[project.entry-points."commitizen.scheme"]
7980
pep440 = "commitizen.version_schemes:Pep440"
@@ -165,9 +166,7 @@ omit = [
165166

166167
[tool.pytest.ini_options]
167168
addopts = "--strict-markers"
168-
testpaths = [
169-
"tests/",
170-
]
169+
testpaths = ["tests/"]
171170

172171
[tool.tox]
173172
requires = ["tox>=4.22"]
@@ -178,7 +177,7 @@ description = "Run tests suite against Python {base_python}"
178177
skip_install = true
179178
deps = ["poetry>=2.0"]
180179
commands_pre = [["poetry", "install", "--only", "main,test"]]
181-
commands = [["pytest", { replace = "posargs", extend = true}]]
180+
commands = [["pytest", { replace = "posargs", extend = true }]]
182181

183182
[tool.ruff]
184183
line-length = 88
@@ -227,14 +226,14 @@ poetry_command = ""
227226
[tool.poe.tasks]
228227
format.help = "Format the code"
229228
format.sequence = [
230-
{cmd = "ruff check --fix commitizen tests"},
231-
{cmd = "ruff format commitizen tests"},
229+
{ cmd = "ruff check --fix commitizen tests" },
230+
{ cmd = "ruff format commitizen tests" },
232231
]
233232

234233
lint.help = "Lint the code"
235234
lint.sequence = [
236-
{cmd = "ruff check commitizen/ tests/ --fix"},
237-
{cmd = "mypy commitizen/ tests/"},
235+
{ cmd = "ruff check commitizen/ tests/ --fix" },
236+
{ cmd = "mypy commitizen/ tests/" },
238237
]
239238

240239
check-commit.help = "Check the commit message"
@@ -250,12 +249,7 @@ cover.help = "Run the test suite with coverage"
250249
cover.ref = "test --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen"
251250

252251
all.help = "Run all tasks"
253-
all.sequence = [
254-
"format",
255-
"lint",
256-
"cover",
257-
"check-commit"
258-
]
252+
all.sequence = ["format", "lint", "cover", "check-commit"]
259253

260254
"doc:screenshots".help = "Render documentation screeenshots"
261255
"doc:screenshots".script = "scripts.gen_cli_help_screenshots:gen_cli_help_screenshots"
@@ -267,11 +261,8 @@ doc.help = "Live documentation server"
267261
doc.cmd = "mkdocs serve"
268262

269263
ci.help = "Run all tasks in CI"
270-
ci.sequence = [
271-
{cmd="pre-commit run --all-files"},
272-
"cover",
273-
]
274-
ci.env = {SKIP = "no-commit-to-branch"}
264+
ci.sequence = [{ cmd = "pre-commit run --all-files" }, "cover"]
265+
ci.env = { SKIP = "no-commit-to-branch" }
275266

276267
setup-pre-commit.help = "Install pre-commit hooks"
277268
setup-pre-commit.cmd = "pre-commit install"

0 commit comments

Comments
 (0)