diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c95ea246..f6a1f687 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,18 +4,18 @@ exclude: ^frontend/src/routeTree.gen.ts$ repos: - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black language_version: python3 - repo: https://github.com/biomejs/pre-commit - rev: "v2.0.0-beta.5" # Use the sha / tag you want to point at + rev: "v2.4.4" # Use the sha / tag you want to point at hooks: - id: biome-check additional_dependencies: ["@biomejs/biome@1.8.3"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -33,14 +33,14 @@ repos: # args: # - --parse-only - repo: https://github.com/PyCQA/flake8 - rev: 7.2.0 + rev: 7.3.0 hooks: - id: flake8 args: - --max-line-length=100 - --per-file-ignores=packit_dashboard/packit_dashboard.wsgi:F401,E402 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.19.1 hooks: - id: mypy args: [--no-strict-optional, --ignore-missing-imports] @@ -54,12 +54,12 @@ repos: - https://github.com/packit/dashboard.git stages: [manual, pre-push] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.33.0 + rev: 0.37.0 hooks: - id: check-github-workflows args: ["--verbose"] - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 + rev: v1.5.6 hooks: - id: insert-license name: insert-license-python diff --git a/packit_dashboard/api/routes.py b/packit_dashboard/api/routes.py index 1207d21f..7ff79417 100644 --- a/packit_dashboard/api/routes.py +++ b/packit_dashboard/api/routes.py @@ -6,7 +6,6 @@ from flask import Blueprint from flask_cors import CORS - logger = getLogger("packit_dashboard") api = Blueprint( "api", diff --git a/packit_dashboard/utils.py b/packit_dashboard/utils.py index 329d34e6..bbd8d14f 100644 --- a/packit_dashboard/utils.py +++ b/packit_dashboard/utils.py @@ -4,7 +4,6 @@ from flask import jsonify, Response as FlaskResponse from requests import request, Response as RequestsResponse - """ Common utility functions used in multiple files in the packit_dashboard package. """ diff --git a/tests/unit/test_views.py b/tests/unit/test_views.py index 7ddda6e5..021c7c92 100644 --- a/tests/unit/test_views.py +++ b/tests/unit/test_views.py @@ -4,6 +4,7 @@ """ Let's test flask views. """ + import pytest from packit_dashboard.app import app as application