halig/.pre-commit-config.yaml
cătălin ab870b5910
Some checks reported errors
continuous-integration/drone Build encountered an error
ci: debug
2023-04-13 22:22:59 +02:00

62 lines
1.3 KiB
YAML

default_language_version:
python: python3.10
files: ^halig|tests|\.drone\.yml$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- id: end-of-file-fixer
- id: check-ast
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: debug-statements
- id: mixed-line-ending
args: [ --fix=lf ]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.260
hooks:
- id: ruff
args:
- --fix
- --exit-non-zero-on-fix
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
pass_filenames: false
args:
- "halig"
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.30.0
hooks:
- id: yamllint
args:
- --strict
- .drone.yml
- repo: local
hooks:
- id: mypy
name: mypy
entry: pdm run mypy
language: system
types: [ python ]
- id: pyright
name: pyright
entry: pdm run pyright
language: system
types: [ python ]