Skip to content

Commit

Permalink
Update pre-commit hooks configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AndPuQing committed Jan 30, 2024
1 parent 3839de2 commit a847cfb
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,23 @@ repos:
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: local

- repo: https://github.com/psf/black.git
rev: 23.3.0
hooks:
- id: black
name: Format with Black
entry: poetry run -C backend/app -- black
language: system
types: [python]
- id: autoflake
name: autoflake
entry: poetry run -C backend/app -- autoflake
language: system
types: [python]
files: (.*\.(py|pyi))$

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
name: Check with Flake8
entry: poetry run -C backend/app -- flake8
language: system
pass_filenames: false
types: [python]
args: [--count, .]
args: [--config=.flake8]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
hooks:
- id: ruff
name: Format with Ruff
entry: poetry run -C backend/app -- ruff
language: system
types: [python]
args: [--fix, --exit-non-zero-on-fix, --no-cache]

ci:
Expand Down

0 comments on commit a847cfb

Please sign in to comment.