forked from alexpdev/torrentfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
83 lines (74 loc) · 1.51 KB
/
tox.ini
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
linting
format
twinecheck
py
[testenv]
description = testing linting and formating
deps =
coverage
pyben>=0.3.1
pytest
pylint>=2.6.0
pytest-clarity
pytest-cov
pytest-icdiff
pytest-instafail
pytest-randomly
torrentfile
commands =
pytest --cov=torrentfile --cov=tests --ff
coverage xml
coverage html
[testenv:format]
basepython = python3
deps =
black
yapf
autopep8
isort
toml
commands =
black torrentfile tests
yapf -r -i torrentfile tests
isort torrentfile tests
autopep8 -r torrentfile tests
[testenv:linting]
basepython = python3
deps =
flake8
mccabe
bandit[toml]
pyroma
pycodestyle
pydocstyle
pylint
pytest
commands =
flake8 torrentfile tests
bandit -r -c pyproject.toml torrentfile tests
pyroma .
pycodestyle torrentfile tests
pydocstyle torrentfile tests
pylint torrentfile tests
[testenv:twinecheck]
basepython = python3
deps =
twine
build
commands =
python -m build --sdist
twine check dist/*
[pydocstyle]
ignore = D200, D210, D212, D213, D413, D407, D406, D203
[pycodestyle]
ignore = E741, E731, E203, E221, E241, W503
[mccabe]
ignore = MC0001
[flake8]
ignore = F401, E731, E221, E241, W503