2016-10-03 17:21:57 +03:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
2022-11-19 12:20:32 +03:00
|
|
|
envlist = py27, py311, flake8, pylint, yapf
|
2016-10-03 17:21:57 +03:00
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
whitelist_externals = rm
|
|
|
|
commands = rm -rf htmlcov
|
|
|
|
coverage erase
|
2017-03-30 17:07:35 +03:00
|
|
|
coverage run -p --include=pgmigrate.py {envbindir}/behave -q
|
2016-10-03 17:21:57 +03:00
|
|
|
coverage combine
|
|
|
|
coverage html pgmigrate.py
|
|
|
|
coverage report --fail-under=100 pgmigrate.py
|
|
|
|
deps = behave
|
|
|
|
importlib
|
|
|
|
coverage
|
2017-12-03 01:39:30 +03:00
|
|
|
func_timeout
|
2016-10-03 17:21:57 +03:00
|
|
|
|
2022-11-19 12:20:32 +03:00
|
|
|
[testenv:py311]
|
2017-03-30 17:07:35 +03:00
|
|
|
whitelist_externals = rm
|
|
|
|
commands = rm -rf htmlcov
|
|
|
|
coverage erase
|
|
|
|
coverage run -p --include=pgmigrate.py {envbindir}/behave -q
|
2016-10-03 17:21:57 +03:00
|
|
|
coverage combine
|
|
|
|
coverage html pgmigrate.py
|
|
|
|
coverage report --fail-under=100 pgmigrate.py
|
|
|
|
deps = behave
|
|
|
|
coverage
|
2017-12-03 01:39:30 +03:00
|
|
|
func_timeout
|
2016-10-03 17:21:57 +03:00
|
|
|
|
|
|
|
[testenv:flake8]
|
2019-04-14 21:09:35 +03:00
|
|
|
commands = flake8 pgmigrate.py setup.py
|
2022-11-24 10:45:48 +03:00
|
|
|
deps = flake8==5.0.4
|
2016-10-03 17:21:57 +03:00
|
|
|
flake8-string-format
|
2022-11-19 12:20:32 +03:00
|
|
|
flake8-isort==5.0.0
|
2017-12-02 21:13:31 +03:00
|
|
|
flake8-commas
|
|
|
|
flake8-quotes
|
2016-10-03 17:21:57 +03:00
|
|
|
flake8-copyright
|
2017-12-02 21:13:31 +03:00
|
|
|
flake8-pep3101
|
2016-10-03 17:21:57 +03:00
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
commands = pylint pgmigrate.py
|
|
|
|
deps = pylint
|
|
|
|
|
2018-08-18 22:34:31 +03:00
|
|
|
[testenv:yapf]
|
|
|
|
commands = yapf -pd pgmigrate.py
|
2022-11-19 12:20:32 +03:00
|
|
|
deps = yapf==0.32.0
|
2018-08-18 22:34:31 +03:00
|
|
|
|
2016-10-03 17:21:57 +03:00
|
|
|
[flake8]
|
|
|
|
copyright-check = True
|
2019-04-14 21:09:35 +03:00
|
|
|
select = E,F,W,C
|
2022-02-02 09:16:26 +03:00
|
|
|
copyright-regexp = Copyright\s+(\(C\)\s+)?(\d{4}-)?2016-2022\s+%(author)s
|
2016-10-03 17:21:57 +03:00
|
|
|
copyright-author = Yandex LLC
|