Add pre-commit hook to increase sw quality

This commit is contained in:
Carsten Grohmann 2022-06-22 21:21:41 +02:00
parent 6d8851b1d6
commit 2e3a58f4ee
2 changed files with 17 additions and 0 deletions

16
.pre-commit-config.yaml Normal file
View File

@ -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

View File

@ -7,3 +7,4 @@
Transcrypt == 3.7.16
selenium
webdriver-manager
pre-commit