Skip to content

Commit 2a0eff6

Browse files
committed
lint: Replace isort with Ruff.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 01a27a3 commit 2a0eff6

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

packaged_helloworld/packaged_helloworld/packaged_helloworld.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from typing import Any, Dict
33

44
import packaged_helloworld
5-
65
from zulip_bots.lib import BotHandler
76

87
__version__ = packaged_helloworld.__version__

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,21 @@ pythonpath = [
9393
]
9494

9595
[tool.ruff]
96+
select = [
97+
"E", # style errors
98+
"F", # flakes
99+
"I", # import sorting
100+
]
96101
ignore = [
97102
"E402", # Module level import not at top of file
103+
"E501", # Line too long
98104
"E731", # Do not assign a `lambda` expression, use a `def`
99105
]
106+
src = [
107+
"tools",
108+
"zulip",
109+
"zulip/integrations/zephyr",
110+
"zulip_bots",
111+
"zulip_botserver",
112+
]
113+
line-length = 100

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
crayons
22
twine
33
black~=23.10.1
4-
isort
54
mock
65
pytest
76
pytest-cov

tools/lint

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ def run() -> None:
3838
linter_config.external_linter(
3939
"gitlint", ["tools/lint-commits"], description="Git Lint for commit messages"
4040
)
41-
linter_config.external_linter(
42-
"isort",
43-
["isort"],
44-
["py"],
45-
description="Sorts Python import statements",
46-
check_arg=["--check-only", "--diff"],
47-
)
4841
linter_config.external_linter(
4942
"black",
5043
["black"],

0 commit comments

Comments
 (0)