From 7e3b11caf851cb524b80504395816f6f5f7b1637 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Sun, 4 Dec 2022 14:58:54 +1000 Subject: [PATCH] Add support for pre-commit --- .pre-commit-config.yaml | 19 +++++++++++++++++++ dev-requirements.txt | 1 + 2 files changed, 20 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 0000000..7013228 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks + +repos: + - repo: https://github.com/psf/black + rev: 22.10.0 + hooks: + - id: black + + - repo: https://github.com/pycqa/isort + rev: 5.10.1 + hooks: + - id: isort + name: isort (python) + + - repo: https://github.com/markdownlint/markdownlint + rev: v0.12.0 + hooks: + - id: markdownlint diff --git a/dev-requirements.txt b/dev-requirements.txt index af48d1b..34597e7 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,5 @@ black isort +pre-commit pytest tox