File: tox.ini

package info (click to toggle)
pg-activity 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,144 kB
  • sloc: python: 3,902; sql: 1,067; sh: 5; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (2)
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