Skip to content

Commit 6820271

Browse files
zevisertLee-W
authored andcommitted
style: formatting
1 parent 3910f84 commit 6820271

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

commitizen/cz/conventional_commits/conventional_commits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def questions(self) -> List[Dict[str, Any]]:
4545
"type": "list",
4646
"name": "prefix",
4747
"message": "Select the type of change you are committing",
48-
"use_shortcuts": self.config.settings['use_shortcuts'],
48+
"use_shortcuts": self.config.settings["use_shortcuts"],
4949
"choices": [
5050
{
5151
"value": "fix",
@@ -106,7 +106,7 @@ def questions(self) -> List[Dict[str, Any]]:
106106
"scripts (example scopes: GitLabCI)"
107107
),
108108
"key": "c",
109-
}
109+
},
110110
],
111111
},
112112
{

commitizen/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"changelog_incremental": False,
2222
"changelog_start_rev": None,
2323
"update_changelog_on_bump": False,
24-
"use_shortcuts": False,
24+
"use_shortcuts": False,
2525
}
2626

2727
MAJOR = "MAJOR"

tests/test_cz_conventional_commits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def test_choices_all_have_keyboard_shortcuts(config):
6666
conventional_commits = ConventionalCommitsCz(config)
6767
questions = conventional_commits.questions()
6868

69-
list_questions = (q for q in questions if q['type'] == "list")
69+
list_questions = (q for q in questions if q["type"] == "list")
7070
for select in list_questions:
71-
assert all('key' in choice for choice in select['choices'])
71+
assert all("key" in choice for choice in select["choices"])
7272

7373

7474
def test_small_answer(config):

0 commit comments

Comments
 (0)