Skip to content

Commit 9464623

Browse files
committed
style: format codebase with the latest black
1 parent c900cf4 commit 9464623

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

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

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)