aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-09 15:48:32 +0100
committerGravatar Joe Banks <[email protected]>2024-08-09 15:48:32 +0100
commitfdbbfd818b0704ba746a9df0bc11421c2aa139ca (patch)
tree2ac29945984803da1c0af4698260e5856ce854c8
parentEnsure taskipy is installed in CI (diff)
Ignore mkdocs.yml from check-yaml pre-commit linter
-rw-r--r--.pre-commit-config.yaml55
1 files changed, 28 insertions, 27 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b133272..0344624 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,31 +1,32 @@
exclude: (secrets?\.ya?ml)|(ghcr-pull-secrets\.yaml)|pydis-users/vars/main.yml$
repos:
-- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.5.0
- hooks:
- - id: check-merge-conflict
- - id: check-toml
- - id: check-yaml
- args: [--allow-multiple-documents]
- - id: end-of-file-fixer
- - id: trailing-whitespace
- args: [--markdown-linebreak-ext=md]
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.5.0
+ hooks:
+ - id: check-merge-conflict
+ - id: check-toml
+ - id: check-yaml
+ args: [--allow-multiple-documents]
+ exclude: ^docs/mkdocs.yml
+ - id: end-of-file-fixer
+ - id: trailing-whitespace
+ args: [--markdown-linebreak-ext=md]
-- repo: local
- hooks:
- - id: ruff-lint
- name: ruff linting
- description: Run ruff linting
- entry: poetry run ruff check --force-exclude
- language: system
- 'types_or': [python, pyi]
- require_serial: true
- args: [--fix, --exit-non-zero-on-fix]
+ - repo: local
+ hooks:
+ - id: ruff-lint
+ name: ruff linting
+ description: Run ruff linting
+ entry: poetry run ruff check --force-exclude
+ language: system
+ "types_or": [python, pyi]
+ require_serial: true
+ args: [--fix, --exit-non-zero-on-fix]
- - id: ruff-format
- name: ruff formatting
- description: Run ruff formatting
- entry: poetry run ruff format --force-exclude
- language: system
- 'types_or': [python, pyi]
- require_serial: true
+ - id: ruff-format
+ name: ruff formatting
+ description: Run ruff formatting
+ entry: poetry run ruff format --force-exclude
+ language: system
+ "types_or": [python, pyi]
+ require_serial: true