Skip to content

Commit a6f0626

Browse files
authored
Merge pull request #714 from commitizen-tools/update-deps
Update deps
2 parents 2d09cbc + f1e2b94 commit a6f0626

File tree

8 files changed

+43
-37
lines changed

8 files changed

+43
-37
lines changed

.github/workflows/docspublish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
run: |
2727
python -m mkdocs build
2828
- name: Push doc to Github Page
29-
uses: peaceiris/actions-gh-pages@v2
29+
uses: peaceiris/actions-gh-pages@v3
3030
env:
31-
PERSONAL_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
32-
PUBLISH_BRANCH: gh-pages
33-
PUBLISH_DIR: ./site
31+
personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
32+
publish_branch: gh-pages
33+
publish_dir: ./site

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ repos:
3535
name: linter and test
3636
language: system
3737
pass_filenames: false
38-
stage: push
38+
stages: [push]
3939
entry: ./scripts/test
4040
types: [python]

commitizen/bump.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
def find_increment(
2424
commits: List[GitCommit], regex: str, increments_map: Union[dict, OrderedDict]
2525
) -> Optional[str]:
26-
2726
if isinstance(increments_map, dict):
2827
increments_map = OrderedDict(increments_map)
2928

@@ -103,7 +102,6 @@ def semver_generator(current_version: str, increment: str = None) -> str:
103102
# so it doesn't matter the increment.
104103
# Example: 1.0.0a0 with PATCH/MINOR -> 1.0.0
105104
if not version.is_prerelease:
106-
107105
if increment == MAJOR:
108106
increments_version[MAJOR] += 1
109107
increments_version[MINOR] = 0

commitizen/git.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def date(self):
7474

7575
@classmethod
7676
def from_line(cls, line: str, inner_delimiter: str) -> "GitTag":
77-
7877
name, objectname, date, obj = line.split(inner_delimiter)
7978
if not obj:
8079
obj = objectname

poetry.lock

Lines changed: 36 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ pytest-cov = "^4.0"
5858
pytest-mock = "^3.10"
5959
pytest-regressions = "^2.4.0"
6060
pytest-freezer = "^0.4.6"
61-
pytest-xdist = "^3.1.0"
61+
pytest-xdist = "^3.2.1"
6262
# code formatter
63-
black = "^22.10"
63+
black = "^23.3.0"
6464
# linter
6565
ruff = "^0.0.262"
6666
pre-commit = "^2.6.0"

tests/commands/test_changelog_command.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def test_changelog_replacing_unreleased_using_incremental(
115115
def test_changelog_is_persisted_using_incremental(
116116
mocker: MockFixture, capsys, changelog_path, file_regression
117117
):
118-
119118
create_file_and_commit("feat: add new output")
120119
create_file_and_commit("fix: output glitch")
121120
create_file_and_commit("Merge into master")
@@ -519,7 +518,6 @@ def test_breaking_change_content_v1_multiline(
519518
def test_changelog_config_flag_increment(
520519
mocker: MockFixture, changelog_path, config_path, file_regression
521520
):
522-
523521
with open(config_path, "a") as f:
524522
f.write("changelog_incremental = true\n")
525523
with open(changelog_path, "a") as f:
@@ -576,7 +574,6 @@ def test_changelog_config_flag_merge_prerelease(
576574
def test_changelog_config_start_rev_option(
577575
mocker: MockFixture, capsys, config_path, file_regression
578576
):
579-
580577
# create commit and tag
581578
create_file_and_commit("feat: new file")
582579
testargs = ["cz", "bump", "--yes"]
@@ -738,7 +735,6 @@ def test_changelog_incremental_with_merge_prerelease(
738735
def test_changelog_with_filename_as_empty_string(
739736
mocker: MockFixture, changelog_path, config_path
740737
):
741-
742738
with open(config_path, "a") as f:
743739
f.write("changelog_file = true\n")
744740

tests/commands/test_check_command.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def test_check_command_with_invalid_argument(config):
223223

224224
@pytest.mark.usefixtures("tmp_commitizen_project")
225225
def test_check_command_with_empty_range(config, mocker: MockFixture):
226-
227226
# must initialize git with a commit
228227
create_file_and_commit("feat: initial")
229228

0 commit comments

Comments
 (0)