-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
126 lines (114 loc) · 2.6 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[tox]
envlist = py39,py310,py311,py312
[testenv]
description = run the test driver
deps =
coverage-badge
coverage
mock
pytest
commands =
coverage erase
coverage run --source bcmc -m pytest --capture=sys {posargs}
# coverage combine
coverage report --show-missing
coverage xml
coverage-badge -f -o coverage.svg
[testenv:lint-isort]
basepython = python3
skip_install = true
deps =
isort
commands =
isort bcmc/ --check-only
[testenv:lint-black]
basepython = python3
skip_install = true
deps =
black
commands =
black bcmc/ --check
[testenv:isort]
basepython = python3
skip_install = true
deps =
isort
commands =
isort bcmc/
[testenv:black]
basepython = python3
skip_install = true
deps =
black
commands =
black bcmc/
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy
commands =
mypy bcmc/
[testenv:autoflake]
basepython = python3
skip_install = true
deps =
autoflake
commands =
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place bcmc/ --exclude=__init__.py
[testenv:flake8]
deps =
flake8
flake8-alfred
flake8-annotations-coverage
flake8-import-order
flake8-blind-except
flake8-bugbear
flake8-builtins
flake8-docstrings
flake8-eradicate
flake8-fixme
flake8-logging-format
flake8-requirements
flake8-string-format
flake8-type-annotations
flake8-variables-names
flake8-2020
commands =
flake8 bcmc/
[testenv:format]
basepython = python3
skip_install = true
deps =
{[testenv:autoflake]deps}
{[testenv:black]deps}
{[testenv:isort]deps}
commands =
{[testenv:autoflake]commands}
{[testenv:black]commands}
{[testenv:isort]commands}
[testenv:lint]
basepython = python3
skip_install = true
deps =
{[testenv:mypy]deps}
{[testenv:lint-black]deps}
{[testenv:lint-isort]deps}
{[testenv:flake8]deps}
commands =
{[testenv:lint-black]commands}
- {[testenv:lint-isort]commands}
- {[testenv:mypy]commands}
- {[testenv:flake8]commands}
[flake8]
exclude = .tox
max-line-length = 88
extend-ignore = E203
ignore = TAE001, E501, E800, D400, E401, C812, D205, D210, D107, W503, S607, C813, S603
show-source = true
enable-extensions=B1, G
application-import-names = bcmc
warn-symbols =
obsolete_module = Warning! This module is obsolete!
module.obsolete_function = Warning! This function is obsolete!
module.submodule.constant = Warning! this variable will be removed!