mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
752b24c4ec
* tox: remove Python < 3.5 config * deps: drop typing, included in Python 3.5+
46 lines
704 B
INI
46 lines
704 B
INI
[tox]
|
|
envlist=py35,py36,py37,flake8
|
|
skip_missing_interpreters = True
|
|
|
|
[tox:travis]
|
|
3.5 = py35
|
|
3.6 = py36
|
|
3.7 = py37
|
|
|
|
[testenv]
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
|
deps=
|
|
pytest
|
|
pytest-cov
|
|
voluptuous
|
|
typing
|
|
deprecation
|
|
flake8
|
|
commands=
|
|
py.test --cov --cov-config=tox.ini pyHS100
|
|
|
|
[testenv:flake8]
|
|
deps=flake8
|
|
commands=flake8 pyHS100
|
|
max-line-length=88
|
|
|
|
[testenv:typing]
|
|
deps=mypy
|
|
commands=mypy --silent-imports pyHS100
|
|
|
|
[flake8]
|
|
exclude = .git,.tox,__pycache__,pyHS100/tests/fakes.py
|
|
|
|
[coverage:run]
|
|
source = pyHS100
|
|
branch = True
|
|
omit =
|
|
pyHS100/cli.py
|
|
pyHS100/tests/*
|
|
|
|
[coverage:report]
|
|
exclude_lines =
|
|
# ignore abstract methods
|
|
raise NotImplementedError
|
|
def __repr__
|