Skip to content

Commit

Permalink
Merge b9a9297 into 6e4afbf
Browse files Browse the repository at this point in the history
  • Loading branch information
flacjacket committed Apr 25, 2020
2 parents 6e4afbf + b9a9297 commit 76a1dcb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -39,6 +39,7 @@ debian/*debhelper
.tox/
.cache/
.pytest_cache/
.pytype/
.mypy_cache/
.tags
venv
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -26,6 +26,8 @@ jobs:
env: TOXENV=pep8
- python: 3.8
env: TOXENV=mypy
- python: 3.7
env: TOXENV=pytype

allow_failures:
- python: pypy3
Expand All @@ -43,6 +45,7 @@ addons:
- gkrellm
- graphviz # for docs
- imagemagick
- libdbus-1-dev
- x11-apps
- xserver-xephyr
- xterm
Expand Down
2 changes: 1 addition & 1 deletion libqtile/backend/x11/xcursors.py
@@ -1,7 +1,7 @@
from libqtile.log_utils import logger

try:
from libqtile.backend.x11._ffi_xcursors import ffi
from libqtile.backend.x11._ffi_xcursors import ffi # pytype: disable=import-error
except ImportError:
raise ImportError("No module named libqtile.backend.x11._ffi_xcursors, be sure to run `./scripts/ffibuild`")

Expand Down
2 changes: 1 addition & 1 deletion libqtile/pangocffi.py
Expand Up @@ -48,7 +48,7 @@


try:
from libqtile._ffi_pango import ffi
from libqtile._ffi_pango import ffi # pytype: disable=import-error
except ImportError:
raise ImportError("No module named libqtile._ffi_pango, be sure to run `./scripts/ffibuild`")

Expand Down
13 changes: 12 additions & 1 deletion tox.ini
Expand Up @@ -7,10 +7,11 @@ envlist =
py36,
py37,
py38,
py-nightly
py-nightly,
docs,
pep8,
mypy,
pytype,
packaging

[testenv]
Expand Down Expand Up @@ -55,6 +56,16 @@ commands =
pip install -r requirements.txt
mypy -p libqtile

[testenv:pytype]
deps =
dbus-python
jupyter_client
pytype
xcffib >= 0.8.1
commands =
pip install -r requirements.txt
pytype -k libqtile

[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands = python setup.py build_sphinx -W

0 comments on commit 76a1dcb

Please sign in to comment.