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