Skip to content

Commit 0360f45

Browse files
committed
Update pre-commit configuration to enhance code quality checks
- Added `language_version` for black to specify Python 3. - Included `args` for isort to use the black profile. - Added new hooks for `trailing-whitespace` and `check-merge-conflict` to improve code cleanliness and prevent merge issues.
1 parent ee6d859 commit 0360f45

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ repos:
33
rev: 24.3.0
44
hooks:
55
- id: black
6+
language_version: python3
67
- repo: https://github.com/PyCQA/isort
78
rev: 5.13.2
89
hooks:
910
- id: isort
10-
- repo: https://github.com/pycqa/flake8
11+
args: ["--profile", "black"]
12+
- repo: https://github.com/PyCQA/flake8
1113
rev: 7.0.0
1214
hooks:
1315
- id: flake8
1416
- repo: https://github.com/pre-commit/pre-commit-hooks
1517
rev: v4.5.0
1618
hooks:
17-
- id: end-of-file-fixer
19+
- id: end-of-file-fixer
20+
- id: trailing-whitespace
21+
- id: check-merge-conflict

0 commit comments

Comments
 (0)