Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
aapris committed Aug 15, 2023
1 parent 4dc1835 commit 305c212
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
exclude: .*migrations\/.*
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.284'
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
# args: ["--force-exclude", --line-length, "120"]
args: ["--line-length", "120"]

- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: [ --line-length=120 ]

- repo: https://github.com/myint/autoflake
rev: v2.2.0
hooks:
- id: autoflake
exclude: migrations

0 comments on commit 305c212

Please sign in to comment.