From c6ab7263f238a5c09983727d9b0da404f038a739 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 31 Oct 2023 17:25:02 +0200 Subject: [PATCH] .pre-commit-config.yaml: pypy3, hook sorting & adjustment --- .pre-commit-config.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 31d9ce6..0ee9f9b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,9 @@ ci: # https://github.com/pre-commit-ci/issues/issues/83 autoupdate_schedule: quarterly +default_language_version: + python: pypy3 + repos: - repo: https://github.com/fsfe/reuse-tool rev: v2.1.0 @@ -18,18 +21,18 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: + - id: trailing-whitespace + args: ["--markdown-linebreak-ext", "md,markdown"] + exclude_types: [svg, tsv] - id: check-added-large-files - id: check-case-conflict + - id: end-of-file-fixer - id: check-yaml - id: check-executables-have-shebangs - id: check-shebang-scripts-are-executable - id: destroyed-symlinks - id: detect-private-key - - id: end-of-file-fixer - exclude: .*\.nginx$ - id: fix-byte-order-marker - - id: trailing-whitespace - exclude_types: [markdown] - repo: https://github.com/pre-commit/mirrors-prettier rev: "v3.0.3"