Skip to content

Commit

Permalink
add pre-commit.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Oct 8, 2024
1 parent 514faa8 commit 711e812
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
stages: [commit]
- repo: https://github.com/ambv/black
rev: 24.4.2
hooks:
- id: black
args: [--config=pyproject.toml]
exclude: "migrations|snapshots"
stages: [commit]
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
hooks:
- id: flake8
args: [--config=.flake8]

additional_dependencies: [flake8-bugbear==22.9.23]
stages: [ commit ]
- repo: https://github.com/PyCQA/bandit
rev: '1.7.9' # Update me!
hooks:
- id: bandit
args: ["-c", "bandit.yaml"]
- repo: https://github.com/twisted/towncrier
rev: 23.11.0
hooks:
- id: towncrier-check

- repo: https://github.com/saxix/pch
rev: '0.1'
hooks:
- id: check-missed-migrations
args:
- src
stages: [ commit ]
additional_dependencies: [ setuptools ]

- id: check-untracked
args:
- src
- tests
stages: [ push ]

- id: check-forbidden
args:
- -p
- /\.showbrowser\(/
- -p
- /print\(111/
stages: [ commit ]
additional_dependencies: [ setuptools ]

0 comments on commit 711e812

Please sign in to comment.