Skip to content

Commit

Permalink
Remove: Replace isort with ruff
Browse files Browse the repository at this point in the history
ruff can also format imports.
  • Loading branch information
bjoernricks committed Jan 26, 2024
1 parent ae201e7 commit b6fcbed
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 72 deletions.
10 changes: 7 additions & 3 deletions autohooks/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
from pontos.helper import deprecated
from pontos.terminal.rich import RichTerminal as Terminal
from pontos.terminal.terminal import Signs
from rich.progress import BarColumn
from rich.progress import (
BarColumn,
SpinnerColumn,
TaskProgressColumn,
TextColumn,
)
from rich.progress import Progress as RichProgress
from rich.progress import SpinnerColumn, TaskProgressColumn, TextColumn

__all__ = (
"Terminal",
Expand Down Expand Up @@ -118,7 +122,7 @@ def overwrite(


def _set_terminal(term: Optional[Terminal] = None) -> Terminal:
global __term # pylint: disable=global-statement, invalid-name
global __term # pylint: disable=global-statement, invalid-name # noqa: PLW0603
if not term:
__term = Terminal()
else:
Expand Down
94 changes: 27 additions & 67 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ rich = ">=12.5.1"
[tool.poetry.dev-dependencies]
autohooks-plugin-black = ">=21.12.0"
autohooks-plugin-ruff = ">=23.6.0"
autohooks-plugin-isort = ">=22.3.0"
autohooks-plugin-mypy = ">=23.3.0"
coverage = ">=7.2.7"
rope = ">=1.9.0"
Expand Down Expand Up @@ -78,7 +77,6 @@ exclude = '''

[tool.autohooks]
pre-commit = [
'autohooks.plugins.isort',
'autohooks.plugins.black',
'autohooks.plugins.ruff',
'autohooks.plugins.mypy',
Expand All @@ -100,3 +98,4 @@ explicit_package_bases = true
[tool.ruff]
line-length = 80
target-version = "py39"
extend-select = ["I", "PLE", "PLW"]

0 comments on commit b6fcbed

Please sign in to comment.