Skip to content

Commit b3205d1

Browse files
committed
fix: small corrections and clean up
1 parent 09fce8a commit b3205d1

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") is not None
69+
return not shutil.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
@@ -54,8 +54,8 @@ class Settings(TypedDict, total=False):
5454

5555
name: str = "cz_conventional_commits"
5656
config_files: List[str] = [
57-
".cz.toml",
5857
"pyproject.toml",
58+
".cz.toml",
5959
".cz.json",
6060
"cz.json",
6161
".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)