File: tox.ini

package info (click to toggle)
python-ppmd 0.3.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,628 kB
  • sloc: ansic: 3,015; python: 798; cpp: 23; makefile: 20; sh: 17
file content (58 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist = check, py{36,37,38,39}, pypy3, docs, mypy

[testenv]
passenv = TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* GITHUB_*
extras = test
commands =
    python -m pytest -vv -s

[flake8]
ignore =

[pytest]
python_files = test*.py
norecursedirs = .git _build tmp* .eggs
addopts = --cov-config=pyproject.toml --cov --cov-append

[mypy]
warn_redundant_casts = True
warn_unused_ignores = True
strict_optional = True
show_column_numbers = True
files = **/*.py

[testenv:mypy]
basepython = python3.8
extras = check
commands = mypy --config-file=tox.ini src tests

[testenv:check]
basepython = python3.8
extras = check
ignore_errors=true
commands =
    check-manifest {toxinidir}
    flake8 src/ppmd tests setup.py
    isort --quiet --check-only --diff src/ppmd tests setup.py
    python setup.py sdist
    twine check dist/*

[testenv:docs]
basepython = python3.8
extras = docs
commands =
    sphinx-build {posargs:-E} -b html docs build/docs

[gh-actions]
python =
    3.6: py36
    3.7: py37
    3.8: py38, check, mypy
    3.9: py39
    pypy3: pypy3

[isort]
known_first_party = ppmd,_ppmd
known_third_party = docutils,flake8,pyannotate_runtime,pytest,pytz,setuptools,sphinx,yaml
line_length = 125