Skip to content

Commit

Permalink
chore: Replace isort with Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
zusorio committed Dec 18, 2024
1 parent 5866081 commit b18ad8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions capellambse/aird/_semantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ extend-select = [
"T1", # flake8-debugger
"UP", # pyupgrade
"YTT", # flake8-2020
"I", # isort
]
extend-ignore = [
"D1", # Missing docstring in _
Expand Down

0 comments on commit b18ad8f

Please sign in to comment.