Skip to content

Commit 66e4e62

Browse files
noirbizarreLee-W
authored andcommitted
build(dev): update and fixes some dependencies
1 parent b9a435c commit 66e4e62

File tree

4 files changed

+72
-101
lines changed

4 files changed

+72
-101
lines changed

poetry.lock

+48-70
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+7-8
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,15 @@ charset-normalizer = "^2.1.0"
7272
[tool.poetry.dev-dependencies]
7373
ipython = "^7.2"
7474
# test
75-
pytest = "^7.0.0"
76-
pytest-cov = "^2.6"
77-
pytest-mock = "^2.0"
75+
pytest = "^7.2.0"
76+
pytest-cov = "^4.0"
77+
pytest-mock = "^3.10"
7878
codecov = "^2.0"
79-
freezegun = "^0.3.15"
80-
pytest-regressions = "^2.2.0"
79+
pytest-regressions = "^2.4.0"
8180
pytest-freezegun = "^0.4.2"
8281
# code formatter
83-
black = "^21.12b0"
84-
isort = "^5.7.0"
82+
black = "^22.10"
83+
isort = "^5.10.0"
8584
# linter
8685
flake8 = "^3.6"
8786
pre-commit = "^2.6.0"
@@ -92,7 +91,7 @@ types-termcolor = "^0.1.1"
9291
mkdocs = "^1.0"
9392
mkdocs-material = "^4.1"
9493
pydocstyle = "^5.0.2"
95-
pytest-xdist = "^2.5.0"
94+
pytest-xdist = "^3.1.0"
9695

9796
[tool.poetry.scripts]
9897
cz = "commitizen.cli:main"

tests/test_bump_find_version.py

+13-19
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,12 @@ def test_generate_version(test_input, expected):
8484
increment = test_input[1]
8585
prerelease = test_input[2]
8686
devrelease = test_input[3]
87-
assert (
88-
generate_version(
89-
current_version,
90-
increment=increment,
91-
prerelease=prerelease,
92-
devrelease=devrelease,
93-
)
94-
== Version(expected)
95-
)
87+
assert generate_version(
88+
current_version,
89+
increment=increment,
90+
prerelease=prerelease,
91+
devrelease=devrelease,
92+
) == Version(expected)
9693

9794

9895
@pytest.mark.parametrize(
@@ -105,13 +102,10 @@ def test_generate_version_local(test_input, expected):
105102
prerelease = test_input[2]
106103
devrelease = test_input[3]
107104
is_local_version = True
108-
assert (
109-
generate_version(
110-
current_version,
111-
increment=increment,
112-
prerelease=prerelease,
113-
devrelease=devrelease,
114-
is_local_version=is_local_version,
115-
)
116-
== Version(expected)
117-
)
105+
assert generate_version(
106+
current_version,
107+
increment=increment,
108+
prerelease=prerelease,
109+
devrelease=devrelease,
110+
is_local_version=is_local_version,
111+
) == Version(expected)

tests/test_bump_update_version_in_files.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
from pathlib import Path
12
from shutil import copyfile
23

34
import pytest
4-
from py._path.local import LocalPath
55

66
from commitizen import bump
77
from commitizen.exceptions import CurrentVersionNotFoundError
@@ -13,9 +13,9 @@
1313

1414

1515
def _copy_sample_file_to_tmpdir(
16-
tmpdir: LocalPath, source_filename: str, dest_filename: str
17-
) -> str:
18-
tmp_file = str(tmpdir.join(dest_filename)).replace("\\", "/")
16+
tmp_path: Path, source_filename: str, dest_filename: str
17+
) -> Path:
18+
tmp_file = tmp_path / dest_filename
1919
copyfile(f"{TESTING_FILE_PREFIX}/{source_filename}", tmp_file)
2020
return tmp_file
2121

0 commit comments

Comments
 (0)