Skip to content

Commit ef3fb95

Browse files
committed
style: format code base with latest black
1 parent 045a14a commit ef3fb95

File tree

4 files changed

+32
-12
lines changed

4 files changed

+32
-12
lines changed

tests/commands/test_check_command.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ def test_check_conventional_commit_succeeds(mocker, capsys):
125125

126126

127127
@pytest.mark.parametrize(
128-
"commit_msg", ("feat!(lang): removed polish language", "no conventional commit",),
128+
"commit_msg",
129+
(
130+
"feat!(lang): removed polish language",
131+
"no conventional commit",
132+
),
129133
)
130134
def test_check_no_conventional_commit(commit_msg, config, mocker, tmpdir):
131135
with pytest.raises(InvalidCommitMessageError):

tests/test_bump_find_version.py

+11-7
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,20 @@ def test_generate_version(test_input, expected):
8282

8383

8484
@pytest.mark.parametrize(
85-
"test_input,expected", itertools.chain(local_versions),
85+
"test_input,expected",
86+
itertools.chain(local_versions),
8687
)
8788
def test_generate_version_local(test_input, expected):
8889
current_version = test_input[0]
8990
increment = test_input[1]
9091
prerelease = test_input[2]
9192
is_local_version = True
92-
assert generate_version(
93-
current_version,
94-
increment=increment,
95-
prerelease=prerelease,
96-
is_local_version=is_local_version,
97-
) == Version(expected)
93+
assert (
94+
generate_version(
95+
current_version,
96+
increment=increment,
97+
prerelease=prerelease,
98+
is_local_version=is_local_version,
99+
)
100+
== Version(expected)
101+
)

tests/test_cli.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def test_commitizen_excepthook(capsys):
7373
def test_commitizen_debug_excepthook(capsys):
7474
with pytest.raises(SystemExit) as excinfo:
7575
cli.commitizen_excepthook(
76-
NotAGitProjectError, NotAGitProjectError(), "", debug=True,
76+
NotAGitProjectError,
77+
NotAGitProjectError(),
78+
"",
79+
debug=True,
7780
)
7881

7982
assert excinfo.type == SystemExit

tests/test_cz_conventional_commits.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,18 @@ def test_info(config):
135135
@pytest.mark.parametrize(
136136
("commit_message", "expected_message"),
137137
[
138-
("test(test_scope): this is test msg", "this is test msg",),
139-
("test(test_scope)!: this is test msg", "this is test msg",),
140-
("test!(test_scope): this is test msg", "",),
138+
(
139+
"test(test_scope): this is test msg",
140+
"this is test msg",
141+
),
142+
(
143+
"test(test_scope)!: this is test msg",
144+
"this is test msg",
145+
),
146+
(
147+
"test!(test_scope): this is test msg",
148+
"",
149+
),
141150
],
142151
)
143152
def test_process_commit(commit_message, expected_message, config):

0 commit comments

Comments
 (0)