Repository: attzonko/mmpy_bot (language: python)

Issue:
Check Python 3.11



Discussion / hints:

Fix patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6fe3bb2e..1f7a69fb 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,6 +32,12 @@ repos:
     hooks:
       - id: flake8
         exclude: (.*/)*snapshots/
+  # Ruff is a "fastar than flake8" linter/formatter
+  - repo: https://github.com/astral-sh/ruff-pre-commit
+    rev: v0.3.4
+    hooks:
+      # Run the linter.
+      - id: ruff
   - repo: https://github.com/mattseymour/pre-commit-pytype
     rev: '2023.5.8'
     hooks:


Test patch:
diff --git a/tests/integration_tests/test_direct_message_plugin.py b/tests/integration_tests/test_direct_message_plugin.py
index db73f5f6..c6e548b0 100644
--- a/tests/integration_tests/test_direct_message_plugin.py
+++ b/tests/integration_tests/test_direct_message_plugin.py
@@ -2,7 +2,7 @@
 import time
 from string import ascii_letters
 
-from .utils import start_bot  # noqa, only imported so that the bot is started
+from .utils import start_bot  # noqa: F401, only imported so that the bot is started
 from .utils import MAIN_BOT_ID, OFF_TOPIC_ID, RESPONSE_TIMEOUT, TEAM_ID
 from .utils import driver as driver_fixture
 from .utils import expect_reply
diff --git a/tests/integration_tests/test_example_plugin.py b/tests/integration_tests/test_example_plugin.py
index 7ebf8891..e731ff9d 100644
--- a/tests/integration_tests/test_example_plugin.py
+++ b/tests/integration_tests/test_example_plugin.py
@@ -1,6 +1,6 @@
 import time
 
-from .utils import start_bot  # noqa, only imported so that the bot is started
+from .utils import start_bot  # noqa: F401, only imported so that the bot is started
 from .utils import MAIN_BOT_ID, OFF_TOPIC_ID, RESPONSE_TIMEOUT, TEAM_ID
 from .utils import driver as driver_fixture
 from .utils import expect_reply
diff --git a/tests/integration_tests/test_webhook_example.py b/tests/integration_tests/test_webhook_example.py
index ebb0c4d8..338d3c34 100644
--- a/tests/integration_tests/test_webhook_example.py
+++ b/tests/integration_tests/test_webhook_example.py
@@ -1,7 +1,7 @@
 import asyncio
 import time
 
-from .utils import start_bot  # noqa, only imported so that the bot is started
+from .utils import start_bot  # noqa: F401, only imported so that the bot is started
 from .utils import OFF_TOPIC_ID, RESPONSE_TIMEOUT
 from .utils import driver as driver_fixture
 from .utils import expect_reply