Skip to content

Commit

Permalink
add new pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
liberty-rising committed Jan 3, 2024
1 parent 5d60bbf commit 707a1b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ repos:
- id: black
language_version: python3 # Ensure black uses the correct version of Python
files: ^backend/ # Run black only on files in the backend/ directory
exclude: ^backend/alembic/versions/ # Exclude alembic migration files
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
files: ^backend/ # Run flake8 only on files in the backend/ directory
exclude: ^backend/alembic/versions/ # Exclude alembic migration files

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.7.1' # Use the latest version
hooks:
- id: mypy
files: ^backend/
exclude: ^backend/alembic/versions/ # Exclude alembic migration files

0 comments on commit 707a1b5

Please sign in to comment.