Add pre-commit to pep8 gate
Flake8 is covered in the pre-commit hooks Change-Id: I0fc88f0dd641b82c5a3456d687c5958d94667eb0 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
This commit is contained in:
parent
1717811456
commit
8979414153
|
@ -7,6 +7,7 @@ pifpaf>=0.10.0 # Apache-2.0
|
||||||
# Bandit security code scanner
|
# Bandit security code scanner
|
||||||
bandit>=1.6.0,<1.7.0 # Apache-2.0
|
bandit>=1.6.0,<1.7.0 # Apache-2.0
|
||||||
stestr>=2.0.0 # Apache-2.0
|
stestr>=2.0.0 # Apache-2.0
|
||||||
|
pre-commit>=2.6.0 # MIT
|
||||||
python-memcached>=1.56 # PSF
|
python-memcached>=1.56 # PSF
|
||||||
pymongo!=3.1,>=3.0.2 # Apache-2.0
|
pymongo!=3.1,>=3.0.2 # Apache-2.0
|
||||||
etcd3gw>=0.2.0 # Apache-2.0
|
etcd3gw>=0.2.0 # Apache-2.0
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -24,16 +24,10 @@ commands =
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
commands =
|
commands =
|
||||||
flake8
|
pre-commit run -a
|
||||||
# Run security linter
|
# Run security linter
|
||||||
bandit -r oslo_cache -x tests -n5
|
bandit -r oslo_cache -x tests -n5
|
||||||
|
|
||||||
[testenv:pre-commit]
|
|
||||||
deps =
|
|
||||||
pre-commit
|
|
||||||
commands =
|
|
||||||
pre-commit run --from-ref HEAD^ --to-ref HEAD
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue