-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
49 lines (42 loc) · 1.09 KB
/
Copy pathtox.ini
File metadata and controls
49 lines (42 loc) · 1.09 KB
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
[tox]
minversion = 3.26.0
envlist =
flake8, mypy, pylint, black
py{37,38,39,310},
[default]
basepython=python3.10
[testenv]
description = run test
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
deps = -rrequirements-dev.txt
commands = pytest
[pytest]
addopts = --doctest-modules --doctest-ignore-import-errors
testpaths = tests vspy README.rst
markers = slow: marks tests as slow (deselect with '-m "not slow"')
[testenv:flake8]
description = run flake8 (linter)
basepython = {[default]basepython}
skip_install = True
deps = -rrequirements-dev.txt
commands =
flake8 --isort-show-traceback vspy
[testenv:pylint]
description = run pylint (static code analysis)
basepython = {[default]basepython}
deps = -rrequirements-dev.txt
commands = pylint vspy
[testenv:mypy]
description = run mypy (static type checker)
basepython = {[default]basepython}
deps = -rrequirements-dev.txt
commands = mypy
[testenv:black]
description = check that comply with autoformating
basepython = {[default]basepython}
deps = -rrequirements-dev.txt
commands = black --check --diff .