summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2019-06-30 02:43:56 +0100
committerChandan Singh <chandan@chandansingh.net>2019-09-02 21:56:34 +0100
commit419a3afbe6e774c9182001977874c8ea08a9f49d (patch)
tree18d3c0f24179ae843caa76db46d4c38478e81dd7 /tox.ini
parent3641578dcac7bd514f8e074835841f381a36c877 (diff)
downloadbuildstream-419a3afbe6e774c9182001977874c8ea08a9f49d.tar.gz
Add initial mypy configuration and types
As a first step, add type hints to variables whose type `mypy` cannot infer automatically. This is the minimal set of type hints that allow running `mypy` without any arguments, and having it not fail. We currently ignore C extensions that mypy can't process directly. Later, we can look into generating stubs for such modules (potentially automatically).
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 10 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 39381dc02..c1a04dda5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -99,6 +99,16 @@ deps =
-rrequirements/dev-requirements.txt
-rrequirements/plugin-requirements.txt
+#
+# Running static type checkers
+#
+[testenv:mypy]
+skip_install = True
+commands =
+ mypy {posargs}
+deps =
+ mypy
+
#
# Building documentation