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