From: Daniele Varrazzo Date: Sun, 15 Mar 2020 21:05:20 +0000 (+1300) Subject: Added tox to create a test grid X-Git-Tag: 3.0.dev0~707 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=205ee319b1fa7f8481028a732930ab2c9395a298;p=thirdparty%2Fpsycopg.git Added tox to create a test grid --- diff --git a/.gitignore b/.gitignore index 31577c5a4..e48743185 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ env /psycopg3.egg-info +/.tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000..3e8bd5b2c --- /dev/null +++ b/tox.ini @@ -0,0 +1,19 @@ +[tox] +envlist = py{36,37,38}, black, flake8 + +[testenv] +commands = pytest {posargs} +passenv = PG* PSYCOPG3_TEST_DSN +deps = pytest >= 5.3,<6 + +[testenv:black] +commands = black --check --diff . +deps = black + +[testenv:flake8] +commands = flake8 +deps = flake8 >= 3.7 + +[flake8] +max-line-length = 85 +exclude = env, .tox