Skip to content

Commit

Permalink
Reuse venv for linters to reduce setup time
Browse files Browse the repository at this point in the history
  • Loading branch information
secwall committed Jan 1, 2023
1 parent 836ef2b commit 48440ab
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,21 @@ deps = behave
coverage
func_timeout

[testenv:flake8]
commands = flake8 pgmigrate.py setup.py
[testenv:{flake8,pylint,yapf}]
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
flake8-string-format
flake8-isort==5.0.0
flake8-commas
flake8-quotes
flake8-copyright
flake8-pep3101

[testenv:pylint]
commands = pylint pgmigrate.py
deps = pylint

[testenv:yapf]
commands = yapf -pd pgmigrate.py
deps = yapf==0.32.0
pylint
yapf==0.32.0

[flake8]
copyright-check = True
Expand Down

0 comments on commit 48440ab

Please sign in to comment.