Skip to content

Commit

Permalink
update pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
leng-yue committed Dec 15, 2022
1 parent 7848418 commit b396218
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@
# See https://pre-commit.com/hooks.html for more hooks

repos:
# Pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# Black
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
# ISort
- repo: https://github.com/timothycrosley/isort
rev: 5.11.2
hooks:
- id: isort
args: [--profile=black]
# Pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# Black
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args:
- "."
# ISort
- repo: https://github.com/timothycrosley/isort
rev: 5.11.2
hooks:
- id: isort
args:
- "--profile=black"
- "."

0 comments on commit b396218

Please sign in to comment.