Skip to content

Commit

Permalink
added Node as an exported name from the root package location. Update…
Browse files Browse the repository at this point in the history
…d linting commands section in the developer section to use ruff check. (#2981)
  • Loading branch information
joecrowleygaia authored Nov 27, 2024
1 parent 37cef27 commit 0c2c59e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
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

0 comments on commit 0c2c59e

Please sign in to comment.