Configure pre-commit with trailing-whitespace, end-of-file-fixer, check-added-large-files, black, flake8

Signed-off-by: Alessandro Maggio <alex.tkd.alex@gmail.com>
This commit is contained in:
Alessandro Maggio
2021-01-29 23:17:16 +01:00
parent 0866394d89
commit b63d9d1c0e
2 changed files with 24 additions and 1 deletions

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

@@ -0,0 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/pycqa/isort
rev: 5.7.0
hooks:
- id: isort
files: ^TwitchChannelPointsMiner/
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
files: ^TwitchChannelPointsMiner/
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
files: ^TwitchChannelPointsMiner/

View File

@@ -5,4 +5,5 @@ pillow
selenium
python-dateutil
emoji
millify
millify
pre-commit