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] 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