diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 831d877..bad7c34 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,26 +7,26 @@ repos: language: script stages: [commit-msg] - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.3.0 hooks: - id: flake8 - - repo: https://github.com/psf/black - rev: 23.12.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black language_version: python3.11 - - repo: https://github.com/asottile/reorder_python_imports - rev: v3.12.0 + - repo: https://github.com/asottile/reorder-python-imports + rev: v3.16.0 hooks: - id: reorder-python-imports args: [--py3-plus] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.19.1 hooks: - id: mypy additional_dependencies: [] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: check-merge-conflict - id: debug-statements diff --git a/game/__init__.py b/game/__init__.py index 57b9bdc..144fc3a 100644 --- a/game/__init__.py +++ b/game/__init__.py @@ -19,7 +19,6 @@ from typing import Final - SCREEN_WIDTH: Final = 800 SCREEN_HEIGHT: Final = 400 BACK_COLOR = (153, 204, 255) diff --git a/scripts/check_version.py b/scripts/check_version.py index b2a7c7c..84368c5 100644 --- a/scripts/check_version.py +++ b/scripts/check_version.py @@ -3,7 +3,6 @@ from packaging import version - cat_cmd = subprocess.Popen(("cat", "game/__init__.py"), stdout=subprocess.PIPE) output = subprocess.check_output(("grep", "__version__"), stdin=cat_cmd.stdout).decode("utf-8").strip() cat_cmd.wait()