Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45bf388

Browse files
committed
fix: small corrections and clean up
1 parent fa99d2f commit 45bf388

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

‎commitizen/commands/init.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def tags(self) -> Optional[List]:
6666

6767
@property
6868
def is_pre_commit_installed(self) -> bool:
69-
return shutil.which("pre-commit")isnotNone
69+
return notshutil.which("pre-commit")
7070

7171

7272
class Init:

‎commitizen/defaults.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class Settings(TypedDict, total=False):
5050

5151
name: str = "cz_conventional_commits"
5252
config_files: List[str] = [
53-
".cz.toml",
5453
"pyproject.toml",
54+
".cz.toml",
5555
".cz.json",
5656
"cz.json",
5757
".cz.yaml",

‎scripts/format‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ export PREFIX="poetry run python -m "
55

66
set -x
77

8-
# ${PREFIX}isort commitizen tests
98
${PREFIX}ruff commitizen tests --fix
109
${PREFIX}black commitizen tests

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /