adding pre-commit with config

This commit is contained in:
Emmanuel Rondan 2022-12-26 13:51:27 -03:00
parent 12b556a352
commit c48accf7ca
2 changed files with 21 additions and 1 deletions

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

@ -0,0 +1,20 @@
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
args: [-r, -c, .bandit.yml]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/pylint
rev: v2.15.6
hooks:
- id: pylint
args: [conftest.py, docs, extras, scrapy, setup.py, tests]
- repo: https://github.com/psf/black.git
rev: 22.12.0
hooks:
- id: black
args: [--line-length=79]

View File

@ -200,7 +200,7 @@ commands =
[testenv:black]
deps =
black==22.10.0
black==22.12.0
commands =
black {posargs:--check .}