lib.itmens/.pre-commit-config.yaml

63 lines
1.5 KiB
YAML
Raw Normal View History

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
rev: v5.0.0
2023-01-11 22:06:34 -05:00
hooks:
- id: check-yaml
2024-06-05 21:53:02 -04:00
args: [--unsafe]
- id: check-json
- id: check-xml
- id: check-toml
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-symlinks
- id: check-added-large-files
2023-08-10 16:01:40 -04:00
args: [--maxkb=1024]
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: debug-statements
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: mixed-line-ending
2023-08-10 16:01:40 -04:00
2024-04-06 00:13:50 -04:00
- repo: https://github.com/astral-sh/ruff-pre-commit
2025-01-20 10:31:01 -05:00
rev: v0.9.2
2024-04-06 00:13:50 -04:00
hooks:
- id: ruff
2025-01-20 10:21:57 -05:00
args: [ "--fix" ]
- id: ruff-format
2024-04-06 00:13:50 -04:00
# - repo: https://github.com/pycqa/isort
# rev: 5.13.2
# hooks:
# - id: isort
# args: ["--profile=black"]
2023-08-10 16:01:40 -04:00
# - repo: https://github.com/psf/black
# rev: 24.4.2
# hooks:
# - id: black
2023-08-10 16:01:40 -04:00
- repo: https://github.com/Riverside-Healthcare/djLint
2024-12-26 11:47:36 -05:00
rev: v1.36.4
hooks:
- id: djlint-reformat-django
- id: djlint-django
2023-08-11 01:43:19 -04:00
# - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.386
# hooks:
# - id: pyright
2023-08-11 01:43:19 -04:00
- repo: local
hooks:
- id: pyright
name: pyright
entry: python -m pyright
language: system
pass_filenames: false