-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (31 loc) · 734 Bytes
/
tox.ini
File metadata and controls
39 lines (31 loc) · 734 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]
isolated_build = True
envlist =
py3
black
pylint
flake8
isort
mypy
[testenv]
whitelist_externals = poetry
skip_install = true
basepython = python3
commands = poetry install
[testenv:py3]
commands = poetry run pytest tests
[testenv:black]
commands = poetry run black switchbot_client tests --check --diff
[testenv:pylint]
commands = poetry run pylint switchbot_client
[testenv:flake8]
commands = poetry run flake8 switchbot_client
[flake8]
max-line-length = 100
ignore = E203,W503
[testenv:isort]
commands = poetry run isort switchbot_client tests --check --diff
[testenv:mypy]
commands =
poetry run mypy --install-types --non-interactive switchbot_client
poetry run mypy switchbot_client