| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This change removes the redundant inheritance from `object` (i.e. `class
Foo(object): pass`) that is no longer needed in Python 3 and is a relic from
Python 2.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add type hints to:
- `rdflib/parser.py`
- `rdflib/plugins/parser/*.py`
- some JSON-LD utils
- `rdflib/exceptions.py`.
This is mainly because the work I'm doing to fix
<https://github.com/RDFLib/rdflib/issues/1844> is touching some of
this parser stuff and the type hints are useful to avoid mistakes.
No runtime changes are included in this PR.
|
|
|
|
| |
for more information, see https://pre-commit.ci
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds as much typing as possible to `rdflib.term`.
Other changes:
- Added back `warn_unused_ignores`. I actually thought this was enabled
but I forgot I disabled it because of some issue on python 3.10.
- Disabled `warn_unused_ignores` only for `rdflib.plugin`. There is an
ignore in this module which is not needed on python 3.10, this is the
most targetted way to avoid having that fail the type checking that I
can think of for now.
- Removed unused type ignores.
This changeset includes no runtime changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
# Conflicts:
# rdflib/__init__.py
# rdflib/compat.py
# rdflib/namespace/__init__.py
# rdflib/plugins/parsers/rdfxml.py
# rdflib/plugins/serializers/rdfxml.py
# rdflib/tools/csv2rdf.py
# test/test_dawg.py
# test/test_namespace.py
# test/test_nt_misc.py
# test/test_rdfxml.py
# test/test_seq.py
# test/test_trig.py
# test/testutils.py
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
|
| |
| |
| |
| |
| | |
For some reason the sequence of processing is different in Travis than in PyCharm. Changing the module names eliminates any possibility of confusion.
Also fixed a number of warnings, whines and general unhappiness in the build process.
|
|/
|
|
| |
Passes all unit tests, but did have to remove '.' from manifest and earl imports. May have to restore...
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
opinions is mainly: no to long lines, but not at any cost.
notation3.py crashses autopep :D
Also rdflib/__init__.py gets completely broken
|
|
|
|
| |
now six is used throughout.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
Moving parsers and serializer implementations into rdflib.plugins package
|