2024-12-19 19:34:09 +00:00
|
|
|
---
|
|
|
|
# Pre-commit configuration
|
|
|
|
# For details, visit: https://pre-commit.com/hooks.html
|
|
|
|
|
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
|
|
|
skip:
|
|
|
|
# These steps run in the CI workflow. Keep in sync.
|
|
|
|
- mypy
|
|
|
|
- pylint
|
|
|
|
|
2021-03-15 11:02:28 +00:00
|
|
|
repos:
|
2024-12-19 19:34:09 +00:00
|
|
|
# Python-specific hooks ######################################################
|
2024-12-29 18:23:27 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-05-17 15:55:13 +00:00
|
|
|
rev: v0.11.10
|
2024-12-29 18:23:27 +00:00
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
args:
|
|
|
|
- --line-length=130
|
|
|
|
- --exit-non-zero-on-fix
|
2024-12-19 19:34:09 +00:00
|
|
|
|
2024-12-29 18:23:27 +00:00
|
|
|
# Local hooks for mypy and pylint
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
name: Run Mypy in Virtualenv
|
|
|
|
entry: scripts/run-in-env.sh mypy
|
|
|
|
language: script
|
|
|
|
types: [python]
|
|
|
|
require_serial: true
|
|
|
|
exclude: ^tests/.+|^docs/.+|^samples/.+
|
2025-01-12 21:44:19 +00:00
|
|
|
- id: pylint
|
|
|
|
name: Run Pylint in Virtualenv
|
|
|
|
entry: scripts/run-in-env.sh pylint
|
|
|
|
language: script
|
|
|
|
types: [python]
|
|
|
|
require_serial: true
|
|
|
|
exclude: ^tests/.+|^docs/.+|^samples/.+
|