]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Added tox to create a test grid
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 15 Mar 2020 21:05:20 +0000 (10:05 +1300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 16 Mar 2020 09:06:05 +0000 (22:06 +1300)
.gitignore
tox.ini [new file with mode: 0644]

index 31577c5a4f84d163079576426f0259def37a9ae6..e48743185617dbd85b304d7934798a69a39f53a7 100644 (file)
@@ -1,2 +1,3 @@
 env
 /psycopg3.egg-info
+/.tox
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..3e8bd5b
--- /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