From c48accf7cae2c21ca204fe874725ebcb0c87af67 Mon Sep 17 00:00:00 2001 From: Emmanuel Rondan Date: Mon, 26 Dec 2022 13:51:27 -0300 Subject: [PATCH] adding pre-commit with config --- .pre-commit-config.yaml | 20 ++++++++++++++++++++ tox.ini | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..bbae805af --- /dev/null +++ b/.pre-commit-config.yaml @@ -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] diff --git a/tox.ini b/tox.ini index 913b8045e..e37ae4579 100644 --- a/tox.ini +++ b/tox.ini @@ -200,7 +200,7 @@ commands = [testenv:black] deps = - black==22.10.0 + black==22.12.0 commands = black {posargs:--check .} \ No newline at end of file