Skip to content

Commit

Permalink
Upgrades Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Feb 11, 2024
1 parent 36064d8 commit 707b493
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.2.1
hooks:
- id: ruff-format
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.8.0
hooks:
- id: mypy
4 changes: 2 additions & 2 deletions oxrdflib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _to_ox_quad_pattern(triple: _TriplePattern, context: Optional[Graph] = None)


def _to_ox_term_pattern(
term: Optional[Union[URIRef, BNode, Literal, Graph]]
term: Optional[Union[URIRef, BNode, Literal, Graph]],
) -> Optional[Union[ox.NamedNode, ox.BlankNode, ox.Literal]]:
if term is None:
return None
Expand All @@ -254,7 +254,7 @@ def _from_ox_graph_name(graph_name: Union[ox.NamedNode, ox.BlankNode, ox.Default


def _from_ox(
term: Optional[Union[ox.NamedNode, ox.BlankNode, ox.Literal, ox.Triple]]
term: Optional[Union[ox.NamedNode, ox.BlankNode, ox.Literal, ox.Triple]],
) -> Optional[Union[Node, Tuple[Node, Node, Node]]]:
if term is None:
return None
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Tracker = "https://github.com/oxigraph/oxrdflib/issues"

[tool.ruff]
line-length = 120

[tool.ruff.lint]
select = [
"ARG",
"B",
Expand Down

0 comments on commit 707b493

Please sign in to comment.