1
1
mirror of https://github.com/yandex/pgmigrate.git synced 2024-09-19 16:17:24 +03:00

Reuse venv for linters to reduce setup time

This commit is contained in:
secwall 2023-01-01 17:17:22 +03:00
parent 836ef2bfdd
commit 48440abbed

18
tox.ini
View File

@ -32,8 +32,12 @@ deps = behave
coverage coverage
func_timeout func_timeout
[testenv:flake8] [testenv:{flake8,pylint,yapf}]
commands = flake8 pgmigrate.py setup.py envdir = {toxworkdir}/.lint_env
commands =
flake8: flake8 pgmigrate.py setup.py
pylint: pylint pgmigrate.py
yapf: yapf -pd pgmigrate.py
deps = flake8==5.0.4 deps = flake8==5.0.4
flake8-string-format flake8-string-format
flake8-isort==5.0.0 flake8-isort==5.0.0
@ -41,14 +45,8 @@ deps = flake8==5.0.4
flake8-quotes flake8-quotes
flake8-copyright flake8-copyright
flake8-pep3101 flake8-pep3101
pylint
[testenv:pylint] yapf==0.32.0
commands = pylint pgmigrate.py
deps = pylint
[testenv:yapf]
commands = yapf -pd pgmigrate.py
deps = yapf==0.32.0
[flake8] [flake8]
copyright-check = True copyright-check = True