repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- id: debug-statements
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 24.1.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
hooks:
- id: ruff
args: [
--fix,
--exit-non-zero-on-fix,
--line-length=120
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies:
- types-click
- types-pyyaml
- pandas-stubs
args: [
--ignore-missing-imports,
--allow-untyped-defs,
--allow-subclassing-any,
--allow-untyped-calls,
--no-strict-optional,
--allow-any-generics,
--disable-error-code=valid-type,
--disable-error-code=assignment,
--disable-error-code=arg-type,
--disable-error-code=var-annotated,
--disable-error-code=no-any-return
]
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest
language: system
pass_filenames: false
always_run: true