From 3cb20c4c4667f423e748e76b58207796eb79ad42 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 4 Nov 2023 20:33:52 +0100 Subject: [PATCH] Migrates auto formatter to Ruff --- .pre-commit-config.yaml | 9 +++------ pyproject.toml | 5 ----- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cabf553..0202ad9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index f8f9bad..86ce918 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",