From 1d0e4e7c9f7777f8322a92fc586da57b360d739b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 14 Apr 2023 00:49:02 -0700 Subject: [PATCH] ruff: fix from __future__ and drop isort --- .pre-commit-config.yaml | 5 ----- docs/conf.py | 2 -- pyproject.toml | 1 + 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33da0f68..6145a772 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,11 +10,6 @@ repos: - id: check-toml - id: check-yaml - id: debug-statements - - repo: https://github.com/pycqa/isort - rev: 5.12.0 - hooks: - - id: isort - args: ["--profile", "black", "-a", "from __future__ import annotations"] - repo: https://github.com/charliermarsh/ruff-pre-commit rev: "v0.0.261" hooks: diff --git a/docs/conf.py b/docs/conf.py index a90813cf..497c4939 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,8 +24,6 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) -"""isort:skip_file""" - # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. diff --git a/pyproject.toml b/pyproject.toml index e1f97ccb..ac42a43c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -197,6 +197,7 @@ target-version = "py38" [tool.ruff.isort] known-first-party = ["ocrmypdf"] +required-imports = ["from __future__ import annotations"] [tool.ruff.pydocstyle] convention = "google" \ No newline at end of file