Skip to content

Commit

Permalink
add pre-comit
Browse files Browse the repository at this point in the history
  • Loading branch information
gkodrzycki committed Aug 5, 2024
1 parent ea74a11 commit 564bf51
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
args: ["--line-length", "120"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pylint-dev/pylint
rev: v3.2.6
hooks:
- id: pylint
language: system
args:
- "--ignore=alembic,__init__.py"
- "--max-line-length=120"
- "--disable=missing-docstring,no-member,missing-class-docstring,missing-function-docstring,missing-timeout,too-few-public-methods"
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: poetry.lock

0 comments on commit 564bf51

Please sign in to comment.