Sebastián Ramírez
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
18 additions and
7 deletions
-
.pre-commit-config.yaml
|
|
|
@ -12,15 +12,23 @@ repos: |
|
|
|
- --unsafe |
|
|
|
- id: end-of-file-fixer |
|
|
|
- id: trailing-whitespace |
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit |
|
|
|
rev: v0.14.3 |
|
|
|
hooks: |
|
|
|
- id: ruff |
|
|
|
args: |
|
|
|
- --fix |
|
|
|
- id: ruff-format |
|
|
|
|
|
|
|
- repo: local |
|
|
|
hooks: |
|
|
|
- id: local-ruff-check |
|
|
|
name: ruff check |
|
|
|
entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix |
|
|
|
require_serial: true |
|
|
|
language: unsupported |
|
|
|
types: [python] |
|
|
|
|
|
|
|
- id: local-ruff-format |
|
|
|
name: ruff format |
|
|
|
entry: uv run ruff format --force-exclude --exit-non-zero-on-format |
|
|
|
require_serial: true |
|
|
|
language: unsupported |
|
|
|
types: [python] |
|
|
|
|
|
|
|
- id: add-permalinks-pages |
|
|
|
language: unsupported |
|
|
|
name: add-permalinks-pages |
|
|
|
@ -28,18 +36,21 @@ repos: |
|
|
|
args: |
|
|
|
- --update-existing |
|
|
|
files: ^docs/en/docs/.*\.md$ |
|
|
|
|
|
|
|
- id: generate-readme |
|
|
|
language: unsupported |
|
|
|
name: generate README.md from index.md |
|
|
|
entry: uv run ./scripts/docs.py generate-readme |
|
|
|
files: ^docs/en/docs/index\.md|docs/en/data/sponsors\.yml|scripts/docs\.py$ |
|
|
|
pass_filenames: false |
|
|
|
|
|
|
|
- id: update-languages |
|
|
|
language: unsupported |
|
|
|
name: update languages |
|
|
|
entry: uv run ./scripts/docs.py update-languages |
|
|
|
files: ^docs/.*|scripts/docs\.py$ |
|
|
|
pass_filenames: false |
|
|
|
|
|
|
|
- id: ensure-non-translated |
|
|
|
language: unsupported |
|
|
|
name: ensure non-translated files are not modified |
|
|
|
|