From 86e44cdf05a4a0a2b6fd45b09c09ece0fdbc5875 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 6 Jan 2021 21:47:18 +0100 Subject: [PATCH] Add pre-commit git hooks --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..c96cb3e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: debug-statements +- repo: https://github.com/ambv/black + rev: stable + hooks: + - id: black + files: ^src/ +- repo: https://github.com/pycqa/isort + rev: 5.5.2 + hooks: + - id: isort +- repo: local + hooks: + - id: pytest-check + name: pytest-check + entry: pytest + language: system + pass_filenames: false + always_run: true