2023-03-24 03:27:01 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-20 08:43:00 +03:00
|
|
|
rev: v4.5.0
|
2023-03-24 03:27:01 +03:00
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2023-05-04 00:03:23 +03:00
|
|
|
args: [--markdown-linebreak-ext=md]
|
2023-03-24 03:27:01 +03:00
|
|
|
- id: check-yaml
|
2023-09-08 07:45:14 +03:00
|
|
|
- id: requirements-txt-fixer
|
2023-03-24 03:27:01 +03:00
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
2024-01-26 12:53:10 +03:00
|
|
|
rev: 24.1.0
|
2023-03-24 03:27:01 +03:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
name: Format code
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
|
|
rev: 5.11.5
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: Format imports
|
|
|
|
- repo: https://github.com/MarcoGorelli/absolufy-imports
|
|
|
|
rev: v0.3.1
|
|
|
|
hooks:
|
|
|
|
- id: absolufy-imports
|
2024-08-06 05:50:52 +03:00
|
|
|
exclude: examples/
|
2023-09-27 02:52:27 +03:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
# Ruff version.
|
2024-08-21 11:16:08 +03:00
|
|
|
rev: v0.6.0
|
2023-09-27 02:52:27 +03:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
2023-12-15 03:18:48 +03:00
|
|
|
args: [ --fix ]
|
2024-07-25 18:16:36 +03:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: format-json
|
|
|
|
name: Format JSON
|
|
|
|
language: python
|
|
|
|
entry: python scripts/format_json.py
|
|
|
|
files: \.(json)$
|
|
|
|
args: [
|
|
|
|
'--indent=4',
|
|
|
|
'--max-line-length=120'
|
|
|
|
]
|