-
André Anjos authoredAndré Anjos authored
.pre-commit-config.yaml 1.74 KiB
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/numpy/numpydoc
rev: v1.7.0
hooks:
- id: numpydoc-validation
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
args: [ --install-types, --non-interactive, --no-strict-optional, --ignore-missing-imports ]
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v2.7.1
# hooks:
# - id: prettier
# types_or: [json]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-ast
- id: check-added-large-files
exclude: |
(?x)(
^src/ptbench/data/padchest/idiap.json.bz2|
^src/ptbench/data/padchest/no-tb-idiap.json.bz2|
^tests/data/16bits.png|
^doc/results/img/rad_sign_drop.png
)
- id: check-toml
- id: check-json
- id: check-yaml
exclude: |
(?x)(
^conda/meta.yaml|
^.gitlab-ci.yml
)
- id: debug-statements
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- repo: https://github.com/fsfe/reuse-tool
rev: v3.0.2
hooks:
- id: reuse
exclude: |
(?x)(
^.pixi/|
^.pixi.toml/|
^.pixi.lock/|
)