diff options
| author | Iwan Aucamp <aucampia@gmail.com> | 2021-09-10 23:24:36 +0200 |
|---|---|---|
| committer | Iwan Aucamp <aucampia@gmail.com> | 2021-09-10 23:24:36 +0200 |
| commit | 90f6fe5611f4c7411e5eac347cafb9d009829b6c (patch) | |
| tree | 13a18c252540faed9a29e1a2be5cb152b90b1974 /tox.ini | |
| parent | fd935e2a7480d19a0c03a6757107767f94c01acd (diff) | |
| download | rdflib-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.ini | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
