mirror of
https://github.com/basnijholt/compose-farm.git
synced 2026-02-03 14:13:26 +00:00
Extracts commands from the Typer app and checks each has a corresponding --help section in the README. Runs when README.md or CLI files change.
37 lines
940 B
YAML
37 lines
940 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: check-readme-commands
|
|
name: Check README documents all CLI commands
|
|
entry: python .github/check_readme_commands.py
|
|
language: system
|
|
files: ^(README\.md|src/compose_farm/cli/.*)$
|
|
pass_filenames: false
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.14.9
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.14.0
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies:
|
|
- pydantic>=2.0.0
|
|
- typer>=0.9.0
|
|
- asyncssh>=2.14.0
|
|
- types-PyYAML
|