CI / checks (pull_request) Successful in 53s
CI runs ruff format over the whole repository, which includes code blocks in Markdown. The hook only saw Python files, so a local run passed and CI failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
# All hooks are local and run through `uv run`, so every tool version comes
|
|
# from uv.lock only. No remote hook repositories, nothing is downloaded by
|
|
# pre-commit itself.
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff-check
|
|
name: ruff check
|
|
entry: uv run ruff check --fix
|
|
language: system
|
|
types_or: [python, pyi]
|
|
- id: ruff-format
|
|
name: ruff format
|
|
entry: uv run ruff format
|
|
language: system
|
|
# ruff also formats Python code blocks in Markdown; CI checks them too.
|
|
types_or: [python, pyi, markdown]
|
|
- id: import-linter
|
|
name: import-linter
|
|
entry: uv run lint-imports --no-logo
|
|
language: system
|
|
files: ^(src/chemenu/.*\.py|pyproject\.toml)$
|
|
pass_filenames: false
|
|
- id: check-yaml
|
|
name: check yaml
|
|
entry: uv run check-yaml
|
|
language: system
|
|
types: [yaml]
|
|
- id: check-toml
|
|
name: check toml
|
|
entry: uv run check-toml
|
|
language: system
|
|
types: [toml]
|
|
- id: end-of-file-fixer
|
|
name: fix end of files
|
|
entry: uv run end-of-file-fixer
|
|
language: system
|
|
types: [text]
|
|
- id: trailing-whitespace
|
|
name: trim trailing whitespace
|
|
entry: uv run trailing-whitespace-fixer
|
|
language: system
|
|
types: [text]
|
|
- id: uv-lock-check
|
|
name: uv lock --check
|
|
entry: uv lock --check
|
|
language: system
|
|
files: ^(pyproject\.toml|uv\.lock)$
|
|
pass_filenames: false
|