From 538b3853d8172f9b75b0b914823fe8c18c2eb07a Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Wed, 5 Apr 2023 19:56:41 +0100 Subject: [PATCH] Add more hooks from pre-commit-hooks repo --- .pre-commit-config.yaml | 9 +++++++++ {{cookiecutter.project_slug}}/.pre-commit-config.yaml | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2dc0f81cb..cb4ff1a11 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,16 @@ repos: rev: v4.4.0 hooks: - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-json + - id: check-toml + - id: check-xml - id: check-yaml + - id: debug-statements + - id: check-builtin-literals + - id: check-case-conflict + - id: check-docstring-first + - id: detect-private-key - repo: https://github.com/asottile/pyupgrade rev: v3.3.1 diff --git a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml index 073df732e..301f1da0e 100644 --- a/{{cookiecutter.project_slug}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_slug}}/.pre-commit-config.yaml @@ -7,7 +7,15 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer + - id: check-json + - id: check-toml + - id: check-xml - id: check-yaml + - id: debug-statements + - id: check-builtin-literals + - id: check-case-conflict + - id: check-docstring-first + - id: detect-private-key - repo: https://github.com/asottile/pyupgrade rev: v3.3.1