ruff: fix from __future__ and drop isort

This commit is contained in:
James R. Barlow 2023-04-14 00:49:02 -07:00
parent 9b8d14d16e
commit 1d0e4e7c9f
No known key found for this signature in database
GPG Key ID: E54A300D567E1260
3 changed files with 1 additions and 7 deletions

View File

@ -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:

View File

@ -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.

View File

@ -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"