diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c41543b..39a5230 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,8 +3,8 @@ # pre-commit install -t pre-commit -t pre-push repos: - - repo: https://github.com/psf/black - rev: 24.4.2 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black - repo: https://github.com/asottile/pyupgrade @@ -17,7 +17,7 @@ repos: - id: prettier exclude: centos_playground/pkg_survey/result* - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: # - id: check-added-large-files # this is a research repo, we can have big files here - id: check-ast @@ -28,7 +28,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/PyCQA/flake8 - rev: 7.1.0 + rev: 7.3.0 hooks: - id: flake8 args: @@ -40,9 +40,9 @@ repos: # - id: mypy # args: [--no-strict-optional, --ignore-missing-imports] - repo: https://github.com/packit/pre-commit-hooks - rev: v1.2.0 + rev: v1.3.0 hooks: - id: check-rebase args: - https://github.com/packit/research.git - stages: [manual, push] + stages: [manual, pre-push] diff --git a/research/fedora-packages-onboarding/get-maintainers.py b/research/fedora-packages-onboarding/get-maintainers.py index 213a469..a85ad2c 100755 --- a/research/fedora-packages-onboarding/get-maintainers.py +++ b/research/fedora-packages-onboarding/get-maintainers.py @@ -14,7 +14,6 @@ from ogr.services.pagure import PagureProject from specfile import Specfile - bodhi_client = BodhiClient() RPM_SPECS = Path("./rpm-specs") checks = [] diff --git a/research/internal-automation/onboard/generate_input.py b/research/internal-automation/onboard/generate_input.py index 1479728..28f7b1e 100644 --- a/research/internal-automation/onboard/generate_input.py +++ b/research/internal-automation/onboard/generate_input.py @@ -1,6 +1,5 @@ from onboard.upstream_finder import UpstreamFinder - if __name__ == "__main__": with open("downstream_packages") as dpf: downstream_names = dpf.read().splitlines() diff --git a/research/source-git/fedora-spec-files/generate-data.py b/research/source-git/fedora-spec-files/generate-data.py index 799d462..7d4c45f 100755 --- a/research/source-git/fedora-spec-files/generate-data.py +++ b/research/source-git/fedora-spec-files/generate-data.py @@ -1,5 +1,6 @@ #!/usr/bin/python3 -""" Generate %patch, %source and %prep data about most patched Fedora spec files. """ +"""Generate %patch, %source and %prep data about most patched Fedora spec files.""" + import json import pathlib import re diff --git a/research/specfiles/hosting-sources/process.py b/research/specfiles/hosting-sources/process.py index fa1b7a1..343f4b8 100644 --- a/research/specfiles/hosting-sources/process.py +++ b/research/specfiles/hosting-sources/process.py @@ -5,7 +5,6 @@ import click - IGNORED_PROTOCOLS = { "", # None → local files from lookaside cache "file", # same as previous