-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
59 lines (53 loc) · 1.38 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
[tox]
envlist =
py{313,312,311,310,39}
format
skip_missing_interpreters = true
[testenv]
description = run the test driver
deps =
-r requirements/tests.txt
commands =
coverage erase
coverage run --source lswifi -m pytest --capture=sys {posargs}
# coverage combine
coverage report --show-missing
coverage xml
coverage-badge -f -o coverage.svg
[testenv:format]
basepython = python3
deps =
-r requirements/format.txt
commands =
isort lswifi/
black lswifi/
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place lswifi/ --exclude=__init__.py
[testenv:style]
basepython = python3
ignore = F405
deps =
-r requirements/style.txt
commands =
flake8 lswifi/
[testenv:lint]
basepython = python3
deps =
-r requirements/format.txt
commands =
isort lswifi/ --check-only
black lswifi/ --check
[testenv:typing]
deps = -r requirements/typing.txt
commands = mypy lswifi/
[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 = lswifi
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!