4040
4141@pytest .mark .parametrize (
4242 "commit_msg" ,
43- (
43+ [
4444 "fix: username exception" ,
4545 "fix(user): username exception" ,
4646 "refactor: remove ini configuration support" ,
4747 "refactor(config): remove ini configuration support" ,
4848 "perf: update to use multiprocess" ,
4949 "perf(worker): update to use multiprocess" ,
50- ) ,
50+ ] ,
5151)
5252@pytest .mark .usefixtures ("tmp_commitizen_project" )
5353def test_bump_patch_increment (commit_msg : str , util : UtilFixture ):
@@ -56,7 +56,7 @@ def test_bump_patch_increment(commit_msg: str, util: UtilFixture):
5656 assert git .tag_exist ("0.1.1" ) is True
5757
5858
59- @pytest .mark .parametrize ("commit_msg" , ( "feat: new file" , "feat(user): new file" ) )
59+ @pytest .mark .parametrize ("commit_msg" , [ "feat: new file" , "feat(user): new file" ] )
6060@pytest .mark .usefixtures ("tmp_commitizen_project" )
6161def test_bump_minor_increment (commit_msg : str , util : UtilFixture ):
6262 util .create_file_and_commit (commit_msg )
@@ -68,7 +68,7 @@ def test_bump_minor_increment(commit_msg: str, util: UtilFixture):
6868 )
6969
7070
71- @pytest .mark .parametrize ("commit_msg" , ( "feat: new file" , "feat(user): new file" ) )
71+ @pytest .mark .parametrize ("commit_msg" , [ "feat: new file" , "feat(user): new file" ] )
7272@pytest .mark .usefixtures ("tmp_commitizen_project" )
7373def test_bump_minor_increment_annotated (commit_msg : str , util : UtilFixture ):
7474 util .create_file_and_commit (commit_msg )
@@ -82,7 +82,7 @@ def test_bump_minor_increment_annotated(commit_msg: str, util: UtilFixture):
8282 assert git .is_signed_tag ("0.2.0" ) is False
8383
8484
85- @pytest .mark .parametrize ("commit_msg" , ( "feat: new file" , "feat(user): new file" ) )
85+ @pytest .mark .parametrize ("commit_msg" , [ "feat: new file" , "feat(user): new file" ] )
8686@pytest .mark .usefixtures ("tmp_commitizen_project_with_gpg" )
8787def test_bump_minor_increment_signed (commit_msg : str , util : UtilFixture ):
8888 util .create_file_and_commit (commit_msg )
@@ -96,7 +96,7 @@ def test_bump_minor_increment_signed(commit_msg: str, util: UtilFixture):
9696 assert git .is_signed_tag ("0.2.0" ) is True
9797
9898
99- @pytest .mark .parametrize ("commit_msg" , ( "feat: new file" , "feat(user): new file" ) )
99+ @pytest .mark .parametrize ("commit_msg" , [ "feat: new file" , "feat(user): new file" ] )
100100def test_bump_minor_increment_annotated_config_file (
101101 commit_msg : str , util : UtilFixture , pyproject : Path
102102):
@@ -112,7 +112,7 @@ def test_bump_minor_increment_annotated_config_file(
112112 assert git .is_signed_tag ("0.2.0" ) is False
113113
114114
115- @pytest .mark .parametrize ("commit_msg" , ( "feat: new file" , "feat(user): new file" ) )
115+ @pytest .mark .parametrize ("commit_msg" , [ "feat: new file" , "feat(user): new file" ] )
116116def test_bump_minor_increment_signed_config_file (
117117 commit_msg : str , util : UtilFixture , tmp_commitizen_project_with_gpg
118118):
@@ -132,7 +132,7 @@ def test_bump_minor_increment_signed_config_file(
132132@pytest .mark .usefixtures ("tmp_commitizen_project" )
133133@pytest .mark .parametrize (
134134 "commit_msg" ,
135- (
135+ [
136136 "feat: new user interface\n \n BREAKING CHANGE: age is no longer supported" ,
137137 "feat!: new user interface\n \n BREAKING CHANGE: age is no longer supported" ,
138138 "feat!: new user interface" ,
@@ -141,7 +141,7 @@ def test_bump_minor_increment_signed_config_file(
141141 "feat(user)!: new user interface" ,
142142 "BREAKING CHANGE: age is no longer supported" ,
143143 "BREAKING-CHANGE: age is no longer supported" ,
144- ) ,
144+ ] ,
145145)
146146def test_bump_major_increment (commit_msg : str , util : UtilFixture ):
147147 util .create_file_and_commit (commit_msg )
@@ -152,7 +152,7 @@ def test_bump_major_increment(commit_msg: str, util: UtilFixture):
152152@pytest .mark .usefixtures ("tmp_commitizen_project" )
153153@pytest .mark .parametrize (
154154 "commit_msg" ,
155- (
155+ [
156156 "feat: new user interface\n \n BREAKING CHANGE: age is no longer supported" ,
157157 "feat!: new user interface\n \n BREAKING CHANGE: age is no longer supported" ,
158158 "feat!: new user interface" ,
@@ -161,7 +161,7 @@ def test_bump_major_increment(commit_msg: str, util: UtilFixture):
161161 "feat(user)!: new user interface" ,
162162 "BREAKING CHANGE: age is no longer supported" ,
163163 "BREAKING-CHANGE: age is no longer supported" ,
164- ) ,
164+ ] ,
165165)
166166def test_bump_major_increment_major_version_zero (commit_msg : str , util : UtilFixture ):
167167 util .create_file_and_commit (commit_msg )
@@ -171,7 +171,7 @@ def test_bump_major_increment_major_version_zero(commit_msg: str, util: UtilFixt
171171
172172@pytest .mark .usefixtures ("tmp_commitizen_project" )
173173@pytest .mark .parametrize (
174- "commit_msg, increment, expected_tag" ,
174+ ( "commit_msg" , " increment" , " expected_tag") ,
175175 [
176176 ("feat: new file" , "PATCH" , "0.1.1" ),
177177 ("fix: username exception" , "major" , "1.0.0" ),
@@ -607,7 +607,7 @@ def test_bump_with_git_to_stdout_arg(util: UtilFixture, capsys: pytest.CaptureFi
607607
608608
609609@pytest .mark .parametrize (
610- "version_filepath, version_regex, version_file_content" ,
610+ ( "version_filepath" , " version_regex" , " version_file_content") ,
611611 [
612612 pytest .param (
613613 "pyproject.toml" ,
@@ -779,7 +779,7 @@ def test_bump_manual_version_disallows_major_version_zero(util: UtilFixture):
779779
780780
781781@pytest .mark .parametrize (
782- "initial_version, expected_version_after_bump" ,
782+ ( "initial_version" , " expected_version_after_bump") ,
783783 [
784784 ("1" , "1.1.0" ),
785785 ("1.2" , "1.3.0" ),
@@ -805,7 +805,7 @@ def test_bump_version_with_less_components_in_config(
805805 assert expected_version_after_bump in f .read ()
806806
807807
808- @pytest .mark .parametrize ("commit_msg" , ( "feat: new file" , "feat(user): new file" ) )
808+ @pytest .mark .parametrize ("commit_msg" , [ "feat: new file" , "feat(user): new file" ] )
809809def test_bump_with_pre_bump_hooks (
810810 commit_msg , mocker : MockFixture , tmp_commitizen_project , util : UtilFixture
811811):
@@ -993,7 +993,7 @@ def test_bump_command_prerelease_scheme_check_old_tags(
993993@pytest .mark .usefixtures ("tmp_commitizen_project" )
994994@pytest .mark .usefixtures ("use_cz_semver" )
995995@pytest .mark .parametrize (
996- "message, expected_tag" ,
996+ ( "message" , " expected_tag") ,
997997 [
998998 ("minor: add users" , "0.2.0" ),
999999 ("patch: bug affecting users" , "0.1.1" ),
@@ -1009,7 +1009,7 @@ def test_bump_with_plugin(util: UtilFixture, message: str, expected_tag: str):
10091009@pytest .mark .usefixtures ("tmp_commitizen_project" )
10101010@pytest .mark .usefixtures ("use_cz_semver" )
10111011@pytest .mark .parametrize (
1012- "message, expected_tag" ,
1012+ ( "message" , " expected_tag") ,
10131013 [
10141014 ("minor: add users" , "0.2.0" ),
10151015 ("patch: bug affecting users" , "0.1.1" ),
@@ -1061,14 +1061,14 @@ def test_bump_command_version_scheme_priority_over_version_type(util: UtilFixtur
10611061
10621062
10631063@pytest .mark .parametrize (
1064- "arg, cfg, expected" ,
1065- (
1064+ ( "arg" , " cfg" , " expected") ,
1065+ [
10661066 pytest .param ("" , "" , "default" , id = "default" ),
10671067 pytest .param ("" , "changelog.cfg" , "from config" , id = "from-config" ),
10681068 pytest .param (
10691069 "--template=changelog.cmd" , "changelog.cfg" , "from cmd" , id = "from-command"
10701070 ),
1071- ) ,
1071+ ] ,
10721072)
10731073def test_bump_template_option_precedence (
10741074 tmp_commitizen_project : Path ,
0 commit comments