2022-10-19 17:10:30 +03:00
|
|
|
default_language_version:
|
2023-05-04 15:19:24 +03:00
|
|
|
python: python3.11
|
2022-10-19 17:10:30 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-25 11:33:00 +03:00
|
|
|
rev: v4.5.0
|
2022-10-19 17:10:30 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-json
|
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
exclude: ^docs/.*$
|
|
|
|
- id: pretty-format-json
|
|
|
|
args:
|
|
|
|
- --autofix
|
|
|
|
- id: trailing-whitespace
|
|
|
|
exclude: README.md
|
2023-08-06 01:47:00 +03:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2023-10-25 11:33:00 +03:00
|
|
|
rev: v0.1.2
|
2022-10-19 17:10:30 +03:00
|
|
|
hooks:
|
2023-08-06 01:47:00 +03:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
|
2023-10-25 11:33:00 +03:00
|
|
|
- id: ruff-format
|