Skip to content

Commit b6fcbed

Browse files
committed
Remove: Replace isort with ruff
ruff can also format imports.
1 parent ae201e7 commit b6fcbed

File tree

3 files changed

+35
-72
lines changed

3 files changed

+35
-72
lines changed

autohooks/terminal.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
from pontos.helper import deprecated
2121
from pontos.terminal.rich import RichTerminal as Terminal
2222
from pontos.terminal.terminal import Signs
23-
from rich.progress import BarColumn
23+
from rich.progress import (
24+
BarColumn,
25+
SpinnerColumn,
26+
TaskProgressColumn,
27+
TextColumn,
28+
)
2429
from rich.progress import Progress as RichProgress
25-
from rich.progress import SpinnerColumn, TaskProgressColumn, TextColumn
2630

2731
__all__ = (
2832
"Terminal",
@@ -118,7 +122,7 @@ def overwrite(
118122

119123

120124
def _set_terminal(term: Optional[Terminal] = None) -> Terminal:
121-
global __term # pylint: disable=global-statement, invalid-name
125+
global __term # pylint: disable=global-statement, invalid-name # noqa: PLW0603
122126
if not term:
123127
__term = Terminal()
124128
else:

poetry.lock

Lines changed: 27 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ rich = ">=12.5.1"
4545
[tool.poetry.dev-dependencies]
4646
autohooks-plugin-black = ">=21.12.0"
4747
autohooks-plugin-ruff = ">=23.6.0"
48-
autohooks-plugin-isort = ">=22.3.0"
4948
autohooks-plugin-mypy = ">=23.3.0"
5049
coverage = ">=7.2.7"
5150
rope = ">=1.9.0"
@@ -78,7 +77,6 @@ exclude = '''
7877

7978
[tool.autohooks]
8079
pre-commit = [
81-
'autohooks.plugins.isort',
8280
'autohooks.plugins.black',
8381
'autohooks.plugins.ruff',
8482
'autohooks.plugins.mypy',
@@ -100,3 +98,4 @@ explicit_package_bases = true
10098
[tool.ruff]
10199
line-length = 80
102100
target-version = "py39"
101+
extend-select = ["I", "PLE", "PLW"]

0 commit comments

Comments
 (0)