-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (32 loc) · 810 Bytes
/
Copy pathtox.ini
File metadata and controls
39 lines (32 loc) · 810 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
[tox]
envlist = py{310,311,312,313,314},pypy3
[default]
src_dir = ./eyed3
test_dir = ./tests
[testenv]
deps =
.[test]
.[display-plugin]
.[yaml-plugin]
commands = pytest {posargs:--verbose {[default]test_dir}}
[testenv:coverage]
deps = pytest-cov
commands =
coverage run --source {[default]src_dir} -m \
pytest {posargs:{[default]test_dir}}
coverage report
coverage html
[testenv:lint]
deps = flake8
skipsdist = true
commands = flake8 {[default]src_dir}
[flake8]
max-line-length = 100
statistics = 1
ignore = E121,E124,E126,E127,E128,E129,E131,E252,E266,E741,F405,W503,W504
# coverage+pytest setting (coverage: prefix not working.)
[coverage:html]
directory = build/tests/coverage
# coverage+pytest setting (coverage: prefix not working.)
[coverage:run]
omit = /tmp/*