setup pre-commit hooks

Generate swagger UI
This commit is contained in:
2024-03-03 03:36:00 +03:00
parent d85fa03da7
commit 80c0356d8e
21 changed files with 855 additions and 101 deletions
+31
View File
@@ -0,0 +1,31 @@
exclude: '^/migrations/'
default_stages: [commit]
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort