File: tox.ini

package info (click to toggle)
ufo2ft 3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,624 kB
  • sloc: python: 18,685; makefile: 3
file content (57 lines) | stat: -rw-r--r-- 1,306 bytes parent folder | download | duplicates (3)
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
[tox]
envlist = lint, py3{10,11,12,13}-cov, htmlcov
skip_missing_interpreters = true

[testenv]
deps =
    -r requirements.txt
    -r dev-requirements.txt
; download the latest pip, setuptools and wheel when creating the venv
download = true
commands =
    # run the test suite against the package installed inside tox env.
    # We use parallel mode and then combine later so that coverage.py will take
    # paths like .tox/py37/lib/python3.7/site-packages/fontTools and collapse
    # them into Lib/fontTools.
    cov: coverage run --parallel-mode -m pytest {posargs}
    !cov: pytest {posargs}

[testenv:lint]
skip_install = true
deps =
    -r dev-requirements.txt
commands =
    black --check --diff .
    isort --gitignore --check-only --diff .
    flake8

[testenv:htmlcov]
deps =
    coverage
skip_install = true
commands =
    coverage combine
    coverage xml
    coverage report
    coverage html

[testenv:codecov]
passenv = *
deps =
    coverage
    codecov
skip_install = true
ignore_outcome = true
commands =
    coverage combine
    codecov --env TOXENV

[flake8]
select = C, E, F, W, B, B9
ignore = E203, E266, E501, W503, B905, B907
max-line-length = 88
exclude = .git, __pycache__, build, dist, .eggs, .tox, venv, venv*, .venv, .venv*

[isort]
profile = black
known_first_party = ufo2ft