diff --git a/src/openjarvis/connectors/slack_connector.py b/src/openjarvis/connectors/slack_connector.py index f7c4f0dc..65c8a715 100644 --- a/src/openjarvis/connectors/slack_connector.py +++ b/src/openjarvis/connectors/slack_connector.py @@ -25,7 +25,10 @@ from openjarvis.tools._stubs import ToolSpec _SLACK_API_BASE = "https://slack.com/api" _SLACK_AUTH_ENDPOINT = "https://slack.com/oauth/v2/authorize" -_SLACK_SCOPES = "channels:read,channels:history,groups:read,groups:history,im:read,im:history,mpim:read,mpim:history,users:read" +_SLACK_SCOPES = ( + "channels:read,channels:history,groups:read,groups:history," + "im:read,im:history,mpim:read,mpim:history,users:read" +) _DEFAULT_CREDENTIALS_PATH = str(DEFAULT_CONFIG_DIR / "connectors" / "slack.json") # --------------------------------------------------------------------------- diff --git a/tests/cli/test_serve_channel_wiring.py b/tests/cli/test_serve_channel_wiring.py index 4542bf2c..bf199d8e 100644 --- a/tests/cli/test_serve_channel_wiring.py +++ b/tests/cli/test_serve_channel_wiring.py @@ -226,7 +226,8 @@ class TestChannelToolLoading: assert system.tools[0].spec.name == "fake" def test_non_tool_agent_receives_empty_tools(self, tmp_path): - """JarvisSystem with no tools list results in empty tools — simple agent unaffected.""" + """JarvisSystem with no tools list results in empty tools — simple agent + unaffected.""" config = JarvisConfig() config.sessions.db_path = str(tmp_path / "sessions.db")