summaryrefslogtreecommitdiff
path: root/rdflib/extras/external_graph_libs.py
Commit message (Collapse)AuthorAgeFilesLines
* feat: diverse type hints (#2264)Iwan Aucamp2023-03-121-12/+18
| | | | | | | Add some small diverse type hints. Type hints make RDFLib safer to use and change, as changes and usage can be validated using static analysers like mypy. This change does not have a runtime impact.
* docs: fix sphinx nitpicky issues (#2036)Iwan Aucamp2022-07-181-9/+9
| | | | | | | | | | | | | Enable nitpicky mode for Sphinx and fix all warnings and errors that occur when running with nitpicky enabled. Other changes: - Add a tox environment for building docs (-docs). This is so we can test building docs on various versions of python as there seems to be some differences in warnings between different versions. This tox environment is enabled for linux CI builds. - Change readthedocs to use python 3.9 as earlier versions do not handle `@typing.overload` with type aliases. - Fixes https://github.com/RDFLib/rdflib/issues/1878
* Migrate from nosetest to pytestIwan Aucamp2021-10-241-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch replace all uses of nose with pytest. It also includes a pytest plugin for creating EARL reports for tests with a `rdf_test_uri` parameter. Some caveats: - HTML report directory is now htmlcov instead of coverage - There is some warning related to the EARL reporting plugin which I can't quite figure out: ``` .venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676 /home/iwana/sw/d/github.com/iafork/rdflib/.venv/lib64/python3.7/site-packages/_pytest/config/__init__.py:676: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: test.earl self.import_plugin(import_spec) ``` This is not causing any problems as far as I can tell, but still annoying. - python setup.py test won't work anymore, I can make it work but this is not advised by pytest: https://github.com/pytest-dev/pytest-runner/#deprecation-notice - run_test.py is still there but it's not really referenced anymore from anywhere and the options it accepts are completely different as it's options were based on nose. I would say it should be removed entirely but for now it is basically just a wrapper around pytest that basically does nothing. - Removed references to test attributes as currently they are not being used anywhere anyway, I guess we can add them back if there is some use for them later. - A lot of tests are still marked to skip when really they should be marked with xfail. This is also affecting the RDFT test manifests and result in reports saying tests are skipped when really we know they will fail and they are only skipped for this reason. But there is no change here from before, and pytest makes it easier to dynamically do expected failures. Special thanks to Wes Turner for his advice and inputs on this process.
* blacked everything6.0.0Nicholas Car2021-07-201-2/+2
|
* fix docc build warningsNicholas Car2021-07-151-39/+42
|
* 2to3 whole sourcebaset0b32020-06-221-4/+0
| | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* blacked all python filesNicholas Car2020-05-161-30/+42
|
* fix shebang typot0b32020-05-021-1/+1
| | | | Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* add python 3.8, drop python 2 and 3.4t0b32020-04-261-1/+1
| | | | | | Closes: https://github.com/RDFLib/rdflib/issues/1014 Signed-off-by: t0b3 <thomas.bettler@gmail.com>
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-8/+12
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* converted last test filesGunnar Aastrand Grimnes2017-01-301-1/+1
|
* make external_graph_libs tests optional (only run if ext lib is installed)Joern Hees2015-03-181-4/+5
| | | | | | | | networkx shouldn't be a dependency of rdflib just to run tests. Also graph_tool heavily depends on C libs and can't easily be installed via pip (or via apt-get on travis). Hence, the doctests are duplicated into proper tests that auto skip if networkx or graph_tool can't be imported.
* code to convert an rdflib.Graph into a graph_tool.GraphJoern Hees2015-03-151-0/+101
|
* edge attributes as callables, transformation functions and refactoringJoern Hees2015-03-101-49/+110
|
* exclude some `def main():` functions from test coverage analysisJoern Hees2015-03-091-1/+1
|
* code to convert an rdflib.Graph into networkx.((Multi)Di)GraphJoern Hees2015-03-091-0/+183