Install pre-commit

This commit is contained in:
ekzyis 2022-04-15 01:22:34 +02:00
parent 550f36652b
commit 33f471ee9c
2 changed files with 27 additions and 0 deletions

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

@ -0,0 +1,19 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: double-quote-string-fixer
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.6.0
hooks:
- id: autopep8
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort

View File

@ -4,19 +4,25 @@ async-timeout==3.0.1
attrs==21.2.0 attrs==21.2.0
autopep8==1.5.7 autopep8==1.5.7
cffi==1.14.6 cffi==1.14.6
cfgv==3.3.1
chardet==4.0.0 chardet==4.0.0
coverage==5.5 coverage==5.5
discord==1.7.3 discord==1.7.3
discord.py==1.7.3 discord.py==1.7.3
distlib==0.3.4
filelock==3.6.0
identify==2.4.12
idna==3.2 idna==3.2
iniconfig==1.1.1 iniconfig==1.1.1
isort==5.9.3 isort==5.9.3
lazy-object-proxy==1.6.0 lazy-object-proxy==1.6.0
mccabe==0.6.1 mccabe==0.6.1
multidict==5.1.0 multidict==5.1.0
nodeenv==1.6.0
packaging==21.0 packaging==21.0
platformdirs==2.3.0 platformdirs==2.3.0
pluggy==1.0.0 pluggy==1.0.0
pre-commit==2.18.1
py==1.10.0 py==1.10.0
pycodestyle==2.7.0 pycodestyle==2.7.0
pycparser==2.20 pycparser==2.20
@ -28,9 +34,11 @@ pytest-asyncio==0.16.0
pytest-cov==2.12.1 pytest-cov==2.12.1
pytest-mock==3.6.1 pytest-mock==3.6.1
python-dotenv==0.19.0 python-dotenv==0.19.0
PyYAML==6.0
six==1.16.0 six==1.16.0
toml==0.10.2 toml==0.10.2
typing-extensions==3.10.0.2 typing-extensions==3.10.0.2
virtualenv==20.14.1
wrapt==1.12.1 wrapt==1.12.1
yarl==1.6.3 yarl==1.6.3
youtube-dl==2021.12.17 youtube-dl==2021.12.17