diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8778da25..a0d285af 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,25 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - id: check-toml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.7.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 24.10.0 hooks: - id: black args: - --safe - --target-version=py37 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: diff --git a/klaus/ctagscache.py b/klaus/ctagscache.py index 0c242b9d..60f0b321 100644 --- a/klaus/ctagscache.py +++ b/klaus/ctagscache.py @@ -26,6 +26,7 @@ this could be optimized in the future. (**) "most likely": currently implemented as "most recently used" """ + import atexit import gzip import os diff --git a/tools/dumbtest.py b/tools/dumbtest.py index 9e5c2c17..4fd24030 100644 --- a/tools/dumbtest.py +++ b/tools/dumbtest.py @@ -1,4 +1,5 @@ """ Very dumb testing tool: Ensures all sites respond with HTTP 2xx/3xx """ + import atexit import re import sys