forked from dalibo/pg_activity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
44 lines (40 loc) · 774 Bytes
/
Copy pathtox.ini
File metadata and controls
44 lines (40 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[tox]
envlist = check-manifest, lint, mypy, py-psycopg{2,3}
skip_missing_interpreters = True
[testenv]
extras =
testing
psycopg2: psycopg2
psycopg3: psycopg
commands =
pytest {posargs:-vv -ra}
setenv =
psycopg2: _PGACTIVITY_USE_PSYCOPG2=1
usedevelop = true
[testenv:check-manifest]
skip_install = True
deps =
check-manifest
commands =
check-manifest
[testenv:lint]
skip_install = True
deps =
codespell
black >= 24.10.0
flake8
isort
pre-commit
pyupgrade
commands =
codespell {toxinidir}
black --check --diff {toxinidir}
flake8 {toxinidir}
isort --check --diff {toxinidir}
pre-commit run --all-files --show-diff-on-failure pyupgrade
[testenv:mypy]
extras =
psycopg
typing
commands =
mypy