From bc8100f4744e48d384bdd90e3c36efc1cda46214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sat, 12 Aug 2023 19:16:40 +0300 Subject: [PATCH] Added bare-bones pre-commit configuration --- .pre-commit-config.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..e7fb0eff --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,32 @@ +# This is the configuration file for pre-commit (https://pre-commit.com/). +# To use: +# * Install pre-commit (https://pre-commit.com/#installation) +# * Copy this file as ".pre-commit-config.yaml" +# * Run "pre-commit install". +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: check-symlinks + - id: check-toml + - id: check-yaml + - id: debug-statements + - id: end-of-file-fixer + - id: mixed-line-ending + args: [ "--fix=lf" ] + - id: trailing-whitespace + + - repo: https://github.com/codespell-project/codespell + rev: v2.2.5 + hooks: + - id: codespell + + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 + hooks: + - id: rst-backticks + - id: rst-directive-colons + - id: rst-inline-touching-normal