kopia lustrzana https://github.com/Yakifo/amqtt
39 wiersze
984 B
YAML
39 wiersze
984 B
YAML
---
|
|
# 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
|
|
|
|
repos:
|
|
# Python-specific hooks ######################################################
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.11.10
|
|
hooks:
|
|
- id: ruff
|
|
args:
|
|
- --line-length=130
|
|
- --exit-non-zero-on-fix
|
|
|
|
# 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/.+
|
|
- 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/.+
|