Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _mailinglist
.idea
__pycache__
.pytest_cache/
.mypy_cache/*
.tox/
.venv
venv/
Expand Down
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ matrix:
env: TOXENV=py36
- python: "3.6"
env: TOXENV=docs
- python: "3.6"
env: TOXENV=bandit
- python: "3.6"
env: TOXENV=mypy
before-install:
- sudo apt-get -qq update
- sudo apt-get install -y libavahi-compat-libdnssd-dev
Expand Down
19 changes: 18 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35, py36, docs, lint, pylint
envlist = py35, py36, docs, lint, pylint, mypy, bandit
skip_missing_interpreters = True

[testenv]
Expand Down Expand Up @@ -54,3 +54,20 @@ commands =
flake8 pyhap tests --select=D10,D205,D4,E501
pylint pyhap --disable=all --enable=missing-docstring,empty-docstring
# pydocstyle pyhap tests


[testenv:mypy]
basepython = {env:PYTHON3_PATH:python3}
deps =
-r{toxinidir}/requirements_all.txt
mypy
commands =
mypy --ignore-missing-imports pyhap


[testenv:bandit]
basepython = {env:PYTHON3_PATH:python3}
deps =
bandit
commands =
bandit -r pyhap