diff --git a/packaged_helloworld/packaged_helloworld/packaged_helloworld.py b/packaged_helloworld/packaged_helloworld/packaged_helloworld.py index f027ea42..427558d5 100644 --- a/packaged_helloworld/packaged_helloworld/packaged_helloworld.py +++ b/packaged_helloworld/packaged_helloworld/packaged_helloworld.py @@ -2,7 +2,6 @@ from typing import Any, Dict import packaged_helloworld - from zulip_bots.lib import BotHandler __version__ = packaged_helloworld.__version__ diff --git a/pyproject.toml b/pyproject.toml index c6081ee0..1d3fa213 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,21 @@ pythonpath = [ ] [tool.ruff] +select = [ + "E", # style errors + "F", # flakes + "I", # import sorting +] ignore = [ "E402", # Module level import not at top of file + "E501", # Line too long "E731", # Do not assign a `lambda` expression, use a `def` ] +src = [ + "tools", + "zulip", + "zulip/integrations/zephyr", + "zulip_bots", + "zulip_botserver", +] +line-length = 100 diff --git a/requirements.txt b/requirements.txt index f47fb7c1..a11f2c04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ crayons twine black~=23.10.1 -isort mock pytest pytest-cov diff --git a/tools/lint b/tools/lint index 5ee68103..9eb8dfd6 100755 --- a/tools/lint +++ b/tools/lint @@ -38,13 +38,6 @@ def run() -> None: linter_config.external_linter( "gitlint", ["tools/lint-commits"], description="Git Lint for commit messages" ) - linter_config.external_linter( - "isort", - ["isort"], - ["py"], - description="Sorts Python import statements", - check_arg=["--check-only", "--diff"], - ) linter_config.external_linter( "black", ["black"],