Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added Node as an exported name from the root package location. #2981

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions docs/developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,17 @@ our black.toml config file:

poetry run black .

Check style and conventions with `flake8 <https://flake8.pycqa.org/en/latest/>`_:
Check style and conventions with `ruff <https://docs.astral.sh/ruff/linter/>`_:

.. code-block:: bash

poetry run flake8 rdflib
poetry run ruff check

We also provide a `flakeheaven <https://pypi.org/project/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 <http://mypy-lang.org/>`_:

Expand Down
3 changes: 2 additions & 1 deletion rdflib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"BNode",
"IdentifiedNode",
"Literal",
"Node",
"Variable",
"Namespace",
"Dataset",
Expand Down Expand Up @@ -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