pelican/.pre-commit-config.yaml
Ilya Simpson 10c0c29171 Enable Ruff rule blind-except.
Note that two inline suppressions are used. I expect, provided that my
[PR](https://github.com/astral-sh/ruff/pull/19520) is merged in, that
these suppressions will become superfluous in a later version of Ruff.
2025-07-31 16:44:24 +12:00

30 lines
772 B
YAML

---
# See https://pre-commit.com/hooks.html for info on hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# ruff version should match the one in pyproject.toml
rev: v0.12.7
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/rtts/djhtml
rev: '3.0.8'
hooks:
- id: djhtml
- id: djcss
- id: djjs