diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fb0f66..c9c7f04 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.6.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -29,32 +29,32 @@ repos: - id: detect-private-key - repo: https://github.com/asottile/pyupgrade - rev: v2.38.2 + rev: v3.16.0 hooks: - id: pyupgrade args: [--py36-plus] name: Upgrade code - repo: https://github.com/PyCQA/docformatter - rev: v1.5.0 + rev: v1.7.5 hooks: - id: docformatter args: [--in-place, --wrap-summaries=120, --wrap-descriptions=120] - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.13.2 hooks: - id: isort args: [--profile, black] - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 24.4.2 hooks: - id: black name: Black code - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.17 hooks: - id: mdformat additional_dependencies: @@ -64,17 +64,17 @@ repos: exclude: ^resources - repo: https://github.com/asottile/yesqa - rev: v1.4.0 + rev: v1.5.0 hooks: - id: yesqa - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.1.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier exclude: | diff --git a/tests/test_app.py b/tests/test_app.py index f6170bc..288edc6 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -5,6 +5,7 @@ 3. in run_once, come up with a way to verify the behavior you wanted. run_once runs your app through one cycle of the event loop and then terminates """ + import io import os from contextlib import redirect_stdout diff --git a/tests/test_slack_command_bot_component.py b/tests/test_slack_command_bot_component.py index fe4f75c..8ad2395 100644 --- a/tests/test_slack_command_bot_component.py +++ b/tests/test_slack_command_bot_component.py @@ -3,6 +3,7 @@ 1. Init the component. 2. call .run() """ + import threading import time