diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a0f4c06a..70f9bfea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ exclude: "^docs/|/migrations/" -default_stages: [commit] +default_stages: [pre-commit] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -12,30 +12,30 @@ repos: - id: debug-statements - repo: https://github.com/asottile/pyupgrade - rev: v3.17.0 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py310-plus] - - repo: https://github.com/psf/black - rev: 24.8.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 7.0.0 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 7.1.1 + rev: 7.3.0 hooks: - id: flake8 args: ["--config=setup.cfg"] additional_dependencies: [flake8-isort] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.19.1 hooks: - id: mypy args: ["--strict"] @@ -61,7 +61,7 @@ repos: - types-requests - repo: https://github.com/PyCQA/bandit - rev: "1.7.0" + rev: "1.9.2" hooks: - id: bandit args: ["-r", "--configfile=bandit-config.yml"] @@ -69,7 +69,7 @@ repos: - pbr - repo: https://github.com/zricethezav/gitleaks - rev: "v8.0.4" + rev: "v8.30.0" hooks: - id: gitleaks args: ["--config=gitleaks-config.toml"] diff --git a/document_classifier/encoder.py b/document_classifier/encoder.py index 1bacc5d9..bcd250e0 100644 --- a/document_classifier/encoder.py +++ b/document_classifier/encoder.py @@ -1,4 +1,4 @@ -""" Encoding the url response """ +"""Encoding the url response""" import pandas as pd diff --git a/document_classifier/load_dataset.py b/document_classifier/load_dataset.py index d61efdad..8b1d6216 100644 --- a/document_classifier/load_dataset.py +++ b/document_classifier/load_dataset.py @@ -1,4 +1,4 @@ -""" Module for loading dataset """ +"""Module for loading dataset""" from torch.utils.data import DataLoader, SequentialSampler, TensorDataset