diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c0a307e..6f59c47 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -21,27 +21,27 @@ repos: - id: detect-private-key - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.16.0 hooks: - id: pyupgrade args: [--py38-plus] name: Upgrade code - - repo: https://github.com/myint/docformatter - rev: v1.5.1 + - repo: https://github.com/PyCQA/docformatter + rev: v1.7.5 hooks: - id: docformatter args: [--in-place, --wrap-summaries=120, --wrap-descriptions=120] - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 24.4.2 hooks: - id: black name: Black code args: ["--line-length=120"] - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.17 hooks: - id: mdformat additional_dependencies: @@ -49,8 +49,8 @@ repos: - mdformat-black - mdformat_frontmatter - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.240 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.5.0 hooks: - id: ruff args: ["--fix", "--line-length=120", "--ignore=E402"] diff --git a/tests/test_research_app.py b/tests/test_research_app.py index 5747579..386cc13 100644 --- a/tests/test_research_app.py +++ b/tests/test_research_app.py @@ -6,6 +6,7 @@ run_once runs your app through one cycle of the event loop and then terminates """ + import io import os from contextlib import redirect_stdout