Skip to content

Commit 0c2c59e

Browse files
added Node as an exported name from the root package location. Updated linting commands section in the developer section to use ruff check. (#2981)
1 parent 37cef27 commit 0c2c59e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

docs/developers.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,20 +231,17 @@ our black.toml config file:
231231
232232
poetry run black .
233233
234-
Check style and conventions with `flake8 <https://flake8.pycqa.org/en/latest/>`_:
234+
Check style and conventions with `ruff <https://docs.astral.sh/ruff/linter/>`_:
235235

236236
.. code-block:: bash
237237
238-
poetry run flake8 rdflib
238+
poetry run ruff check
239239
240-
We also provide a `flakeheaven <https://pypi.org/project/flakeheaven/>`_
241-
baseline that ignores existing flake8 errors and only reports on newly
242-
introduced flake8 errors:
240+
Any issues that are found can potentially be fixed automatically using:
243241

244242
.. code-block:: bash
245243
246-
poetry run flakeheaven
247-
244+
poetry run ruff check --fix
248245
249246
Check types with `mypy <http://mypy-lang.org/>`_:
250247

rdflib/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"BNode",
6060
"IdentifiedNode",
6161
"Literal",
62+
"Node",
6263
"Variable",
6364
"Namespace",
6465
"Dataset",
@@ -195,7 +196,7 @@
195196
XSD,
196197
Namespace,
197198
)
198-
from rdflib.term import BNode, IdentifiedNode, Literal, URIRef, Variable
199+
from rdflib.term import BNode, IdentifiedNode, Literal, Node, URIRef, Variable
199200

200201
from rdflib import plugin, query, util # isort:skip
201202
from rdflib.container import * # isort:skip # noqa: F403

0 commit comments

Comments
 (0)