2023-08-10 16:01:40 -04:00
|
|
|
exclude: ^test_data/
|
2023-01-11 22:06:34 -05:00
|
|
|
repos:
|
2023-08-10 16:01:40 -04:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-06-02 14:50:07 -04:00
|
|
|
rev: v4.6.0
|
2023-01-11 22:06:34 -05:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
2023-08-10 16:01:40 -04:00
|
|
|
- id: check-json
|
|
|
|
- id: check-xml
|
|
|
|
- id: check-toml
|
2024-06-02 14:50:07 -04:00
|
|
|
- id: check-ast
|
|
|
|
- id: check-docstring-first
|
|
|
|
- id: check-executables-have-shebangs
|
2023-08-10 16:01:40 -04:00
|
|
|
- id: check-symlinks
|
|
|
|
- id: check-added-large-files
|
|
|
|
args: [--maxkb=1024]
|
|
|
|
- id: detect-private-key
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: fix-byte-order-marker
|
|
|
|
- id: debug-statements
|
|
|
|
- id: check-merge-conflict
|
2023-01-11 22:06:34 -05:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
2023-08-10 16:01:40 -04:00
|
|
|
- id: requirements-txt-fixer
|
|
|
|
- id: mixed-line-ending
|
|
|
|
|
2024-04-06 00:13:50 -04:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2024-06-02 14:50:07 -04:00
|
|
|
rev: v0.4.7
|
2024-04-06 00:13:50 -04:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
# - id: ruff-format
|
|
|
|
|
2023-08-10 16:01:40 -04:00
|
|
|
- repo: https://github.com/pycqa/isort
|
2024-04-06 00:13:50 -04:00
|
|
|
rev: 5.13.2
|
2023-08-10 16:01:40 -04:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
args: ["--profile=black"]
|
|
|
|
|
|
|
|
- repo: https://github.com/psf/black
|
2024-06-02 14:50:07 -04:00
|
|
|
rev: 24.4.2
|
2023-01-11 22:06:34 -05:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2023-08-10 16:01:40 -04:00
|
|
|
|
2023-05-20 11:01:18 -04:00
|
|
|
- repo: https://github.com/Riverside-Healthcare/djLint
|
2023-12-31 08:32:19 -05:00
|
|
|
rev: v1.34.1
|
2023-05-20 11:01:18 -04:00
|
|
|
hooks:
|
|
|
|
- id: djlint-reformat-django
|
|
|
|
- id: djlint-django
|
2023-08-11 01:43:19 -04:00
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: pyright
|
|
|
|
name: pyright
|
|
|
|
entry: python -m pyright
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|