-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
92 lines (82 loc) · 1.93 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
[tox]
isolated_build = True
envlist = py36,py37,py38,py39
[testenv]
deps =
.[influxdb]
black
coverage
flake8
mccabe
mypy
pylint
pytest
commands =
coverage erase
coverage run
coverage combine
coverage report -m
coverage xml
black multimeter --line-length 88 --skip-string-normalization
flake8 multimeter
pylint multimeter --rcfile=tox.ini
mypy multimeter --config-file tox.ini
[testenv:docs]
description = Build the documentation for dev without committing
basepython = python3.8
deps =
mkdocs
mkdocs-material
mkdocstrings
mkdocs-git-revision-date-plugin
.[influxdb]
commands =
mkdocs build
# mkdocs serve # Uncomment to check the built documentation locally
[testenv:docs-release]
description = Build the documentation for a release
basepython = python3.8
deps =
mkdocs
mkdocs-material
mkdocstrings
mkdocs-git-revision-date-plugin
mike
.[influxdb]
commands =
mike deploy --rebase --prefix build -b docs-deployment --update-aliases {env:VERSION_TAG:dev} {env:VERSION_ALIAS:latest}
mike set-default --prefix build -b docs-deployment latest
passenv =
HOME
VERSION_TAG
VERSION_ALIAS
[coverage:run]
branch = True
command_line = -m pytest
parallel = True
source =
multimeter/
[coverage:report]
exclude_lines =
if __name__ == .__main__.:
[flake8]
extend-ignore = E203
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
max-complexity = 10
max-line-length = 88
per-file-ignores =
multimeter/__init__.py:F401
[mypy]
[mypy-influxdb_client.*]
ignore_missing_imports = True
[SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines=4
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.coverage
ignore-imports=yes
[MESSAGES CONTROL]
disable=too-few-public-methods