Skip to content

Commit

Permalink
Migrates auto formatter to Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Nov 4, 2023
1 parent 8a9d6b2 commit 3cb20c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ repos:
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/ambv/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.0
rev: v0.1.4
hooks:
- id: ruff-format
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
rev: v1.6.1
hooks:
- id: mypy
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@ Homepage = "https://github.com/oxigraph/oxrdflib"
Source = "https://github.com/oxigraph/oxrdflib"
Tracker = "https://github.com/oxigraph/oxrdflib/issues"


[tool.black]
line-length = 120

[tool.ruff]
line-length = 120
target-version = "py37"
select = [
"ARG",
"B",
Expand Down

0 comments on commit 3cb20c4

Please sign in to comment.