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:
22
.pre-commit-config.yaml
Normal file
22
.pre-commit-config.yaml
Normal 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/
|
||||
@@ -5,4 +5,5 @@ pillow
|
||||
selenium
|
||||
python-dateutil
|
||||
emoji
|
||||
millify
|
||||
millify
|
||||
pre-commit
|
||||
|
||||
Reference in New Issue
Block a user