From 2e3a58f4eed97e45ba6f6f6fe850ecc141d27430 Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Wed, 22 Jun 2022 21:21:41 +0200 Subject: [PATCH] Add pre-commit hook to increase sw quality --- .pre-commit-config.yaml | 16 ++++++++++++++++ requirements.txt | 1 + 2 files changed, 17 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..efe266f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: + - repo: https://github.com/psf/black + rev: 22.3.0 + hooks: + - id: black + language_version: python3.7 + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-shebang-scripts-are-executable + - id: check-toml + - id: check-yaml + - id: detect-private-key + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace diff --git a/requirements.txt b/requirements.txt index 0e8d283..5daae17 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ Transcrypt == 3.7.16 selenium webdriver-manager +pre-commit