From 992bc97c06f8f8f8bab23c28f7772a1d6ee35b08 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 16:32:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.3.0 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/24.3.0...25.12.0) - [github.com/PyCQA/flake8: 5.0.4 → 7.3.0](https://github.com/PyCQA/flake8/compare/5.0.4...7.3.0) - [github.com/pycqa/isort: 5.13.2 → 7.0.0](https://github.com/pycqa/isort/compare/5.13.2...7.0.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 192b722..1026e37 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,22 +4,22 @@ fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - - repo: https://github.com/psf/black - rev: 24.3.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black args: [--line-length=128, --verbose] - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.3.0 hooks: - id: flake8 args: [--max-line-length=128, '--exclude=./.*,build,dist,official*,utils/artifact_pipeline/*,helper_code.py,run_model.py,train_model.py,evaluate_model.py,remove_data.py,remove_labels.py,truncate_data.py,*.ipynb', '--ignore=E501,W503,E203,F841,E402,E231', --count, --statistics, --show-source] - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 7.0.0 hooks: - id: isort args: [--profile=black, --line-length=128] From 26b95e7d57825a7fa18ef53a9e01b4311bad7b21 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 16:34:11 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cfg_models.py | 3 +-- data_reader.py | 3 +-- dataset.py | 3 +-- models/__init__.py | 3 +-- models/crnn.py | 3 +-- outputs.py | 3 +-- test_docker.py | 3 +-- test_local.py | 3 +-- trainer.py | 3 +-- utils/gather_results.py | 3 +-- 10 files changed, 10 insertions(+), 20 deletions(-) diff --git a/cfg_models.py b/cfg_models.py index 76ffef8..78c36b4 100644 --- a/cfg_models.py +++ b/cfg_models.py @@ -1,5 +1,4 @@ -""" -""" +""" """ from copy import deepcopy diff --git a/data_reader.py b/data_reader.py index d89c8f5..133edc9 100644 --- a/data_reader.py +++ b/data_reader.py @@ -1,5 +1,4 @@ -""" -""" +""" """ import os import re diff --git a/dataset.py b/dataset.py index 48b19ff..1ce0644 100644 --- a/dataset.py +++ b/dataset.py @@ -1,5 +1,4 @@ -""" -""" +""" """ import json import os diff --git a/models/__init__.py b/models/__init__.py index 6b79278..3cce9ac 100644 --- a/models/__init__.py +++ b/models/__init__.py @@ -1,5 +1,4 @@ -""" -""" +""" """ from .crnn import CRNN_CINC2023 from .ml import ML_Classifier_CINC2023 diff --git a/models/crnn.py b/models/crnn.py index 5a429a4..5bbb606 100644 --- a/models/crnn.py +++ b/models/crnn.py @@ -1,5 +1,4 @@ -""" -""" +""" """ from copy import deepcopy from typing import Any, Dict, Optional, Union diff --git a/outputs.py b/outputs.py index 1f7582f..785901a 100644 --- a/outputs.py +++ b/outputs.py @@ -1,5 +1,4 @@ -""" -""" +""" """ from dataclasses import dataclass from typing import Optional, Sequence diff --git a/test_docker.py b/test_docker.py index dac3dea..1893ae9 100644 --- a/test_docker.py +++ b/test_docker.py @@ -1,5 +1,4 @@ -""" -""" +""" """ import os from copy import deepcopy diff --git a/test_local.py b/test_local.py index 77755dd..3cbb75f 100644 --- a/test_local.py +++ b/test_local.py @@ -1,5 +1,4 @@ -""" -""" +""" """ import os import sys diff --git a/trainer.py b/trainer.py index d7d920c..64b4777 100644 --- a/trainer.py +++ b/trainer.py @@ -1,5 +1,4 @@ -""" -""" +""" """ import argparse import os diff --git a/utils/gather_results.py b/utils/gather_results.py index 7880af3..7f149a4 100644 --- a/utils/gather_results.py +++ b/utils/gather_results.py @@ -1,5 +1,4 @@ -""" -""" +""" """ import posixpath from pathlib import Path