-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
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.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.tox | ||
.venv | ||
.mypy_cache | ||
.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# https://flake8.pycqa.org/en/latest/user/configuration.html | ||
[flake8] | ||
extend-ignore = | ||
# E501: line too long | ||
# Disabled so that black can control line length. | ||
E501, |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,8 +364,6 @@ def namespace(self, prefix): | |
|
||
def namespaces(self): | ||
""" """ | ||
if False: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mwatts15
Contributor
|
||
yield None | ||
|
||
# Optional Transactional methods | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ flake8 | |
doctest-ignore-unicode==0.1.2 | ||
berkeleydb | ||
black==21.6b0 | ||
flake8-black | ||
mypy | ||
types-setuptools |
So, we're just breaking code for fun now, or what?