From b18ad8fc62e6adb669b0f2ca39cb1d190ae99636 Mon Sep 17 00:00:00 2001 From: Tobias Messner Date: Wed, 18 Dec 2024 10:20:17 +0100 Subject: [PATCH] chore: Replace isort with Ruff --- .pre-commit-config.yaml | 6 +----- capellambse/aird/_semantic.py | 3 +-- pyproject.toml | 1 + 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 640a40285..5f3091f77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -70,10 +70,6 @@ repos: - LICENSES/.license_header.txt - --comment-style - "..| |" - - repo: https://github.com/PyCQA/isort - rev: 5.13.2 - hooks: - - id: isort - repo: https://github.com/PyCQA/docformatter rev: eb1df347edd128b30cd3368dddc3aa65edcfac38 hooks: @@ -89,7 +85,7 @@ repos: name: Ruff (main Python code) types_or: [python, pyi, jupyter] exclude: 'docs/.*\.ipynb$' - args: [--extend-ignore=FIX] + args: [--extend-ignore=FIX, --fix] - id: ruff name: Ruff (demo notebooks) types_or: [jupyter] diff --git a/capellambse/aird/_semantic.py b/capellambse/aird/_semantic.py index b5f8002f6..731df111c 100644 --- a/capellambse/aird/_semantic.py +++ b/capellambse/aird/_semantic.py @@ -20,9 +20,8 @@ import capellambse from capellambse import diagram -from . import _box_factories +from . import _box_factories, _edge_factories from . import _common as c -from . import _edge_factories LOGGER = logging.getLogger(__name__) NO_RENDER_XMT = frozenset( diff --git a/pyproject.toml b/pyproject.toml index 01fe2aeca..e71bb7012 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -193,6 +193,7 @@ extend-select = [ "T1", # flake8-debugger "UP", # pyupgrade "YTT", # flake8-2020 + "I", # isort ] extend-ignore = [ "D1", # Missing docstring in _