From 8ccfedee13040a64a38d98410c47cb3f8e1b3edf Mon Sep 17 00:00:00 2001 From: joecrowleygaia Date: Mon, 11 Nov 2024 15:01:25 +0800 Subject: [PATCH] added Node as an exported name from the root package location. Updated linting commands section in the developer section to use ruff check. --- docs/developers.rst | 11 ++++------- rdflib/__init__.py | 3 ++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/developers.rst b/docs/developers.rst index 4a9e2266b..5b2bb47cb 100644 --- a/docs/developers.rst +++ b/docs/developers.rst @@ -231,20 +231,17 @@ our black.toml config file: poetry run black . -Check style and conventions with `flake8 `_: +Check style and conventions with `ruff `_: .. code-block:: bash - poetry run flake8 rdflib + poetry run ruff check -We also provide a `flakeheaven `_ -baseline that ignores existing flake8 errors and only reports on newly -introduced flake8 errors: +Any issues that are found can potentially be fixed automatically using: .. code-block:: bash - poetry run flakeheaven - + poetry run ruff check --fix Check types with `mypy `_: diff --git a/rdflib/__init__.py b/rdflib/__init__.py index 0c40cd7a4..843b614e4 100644 --- a/rdflib/__init__.py +++ b/rdflib/__init__.py @@ -59,6 +59,7 @@ "BNode", "IdentifiedNode", "Literal", + "Node", "Variable", "Namespace", "Dataset", @@ -195,7 +196,7 @@ XSD, Namespace, ) -from rdflib.term import BNode, IdentifiedNode, Literal, URIRef, Variable +from rdflib.term import BNode, IdentifiedNode, Literal, Node, URIRef, Variable from rdflib import plugin, query, util # isort:skip from rdflib.container import * # isort:skip # noqa: F403