summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorIwan Aucamp <aucampia@gmail.com>2021-09-10 23:24:36 +0200
committerIwan Aucamp <aucampia@gmail.com>2021-09-10 23:24:36 +0200
commit90f6fe5611f4c7411e5eac347cafb9d009829b6c (patch)
tree13a18c252540faed9a29e1a2be5cb152b90b1974 /tox.ini
parentfd935e2a7480d19a0c03a6757107767f94c01acd (diff)
downloadrdflib-90f6fe5611f4c7411e5eac347cafb9d009829b6c.tar.gz
Fix mypy type errors and add mypy to .drone.yml
Fixes #1311 Add `mypy` to .drone.yml and fix type errors that come up. Not type checking examples or tests. Other changes: - fix return value for `Graph.serialize` (refs #1394) - remove default value for `rdflib.plugins.sparql.algebra.translateAlgebra` (refs #1322) - add .dockerignore to reduce context size and make docker quicker to run. - add .flake8 config to ignore line length as black is managing formatting. - add mypy to docker-compose, makefile and tox.ini - fix the way csv2rdf is invoked to ensure that the right code gets executed.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 2fd97716..0615a0b3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -24,3 +24,12 @@ commands =
deps =
-rrequirements.txt
-rrequirements.dev.txt
+
+[testenv:mypy]
+basepython =
+ python3.7
+commands =
+ {envpython} -m mypy rdflib --show-error-context --show-error-codes
+deps =
+ -rrequirements.txt
+ -rrequirements.dev.txt