precommit

This commit is contained in:
2024-01-25 11:02:31 +03:00
parent ccbbc04051
commit 9aea7b02fb
2 changed files with 60 additions and 38 deletions

24
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,24 @@
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: detect-private-key
- id: double-quote-string-fixer
- id: check-ast
- id: check-merge-conflict
- repo: local
hooks:
- id: lint-python
name: Lint Python
entry: make lint-python
types: [python]
language: system
pass_filenames: false