diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 31b7c35..63efe5c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -17,17 +17,17 @@ repos: - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.6 + rev: v4.0.0-alpha.8 hooks: - id: prettier - - repo: https://github.com/psf/black - rev: 23.3.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.3.0 hooks: - id: flake8 args: @@ -35,11 +35,11 @@ repos: - --extend-ignore=E203 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.1.1 + rev: v1.19.1 hooks: - id: mypy - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.21.2 hooks: - id: pyupgrade diff --git a/pre_commit_hooks/source0_uses_version_macro.py b/pre_commit_hooks/source0_uses_version_macro.py index bd146d5..f80f397 100644 --- a/pre_commit_hooks/source0_uses_version_macro.py +++ b/pre_commit_hooks/source0_uses_version_macro.py @@ -3,6 +3,7 @@ when version in spec file is changed -> it should be seen in source0 """ + import sys import uuid from os import getcwd @@ -12,7 +13,6 @@ from specfile import Specfile - SPEC_ERR_MSG = ( "No related macro with version in source0 found. Please use " "some macro in source0 so when you change version in spec "