From 420b98f6533b35bd2eb876ec716b16f350209f34 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 20:01:46 +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.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/asottile/pyupgrade: v3.17.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.17.0...v3.19.1) - [github.com/psf/black: 24.8.0 → 25.1.0](https://github.com/psf/black/compare/24.8.0...25.1.0) - [github.com/PyCQA/isort: 5.13.2 → 6.0.1](https://github.com/PyCQA/isort/compare/5.13.2...6.0.1) - [github.com/PyCQA/flake8: 7.1.1 → 7.1.2](https://github.com/PyCQA/flake8/compare/7.1.1...7.1.2) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.15.0) - [github.com/PyCQA/bandit: 1.7.0 → 1.8.3](https://github.com/PyCQA/bandit/compare/1.7.0...1.8.3) - [github.com/zricethezav/gitleaks: v8.0.4 → v8.24.0](https://github.com/zricethezav/gitleaks/compare/v8.0.4...v8.24.0) --- .pre-commit-config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e00d2c3f..1a0bcb01 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: v5.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.19.1 hooks: - id: pyupgrade args: [--py310-plus] - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 7.1.1 + rev: 7.1.2 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.15.0 hooks: - id: mypy args: ["--strict"] @@ -61,13 +61,13 @@ repos: - types-requests - repo: https://github.com/PyCQA/bandit - rev: '1.7.0' + rev: '1.8.3' hooks: - id: bandit args: ['-r', '--configfile=bandit-config.yml'] - repo: https://github.com/zricethezav/gitleaks - rev: 'v8.0.4' + rev: 'v8.24.0' hooks: - id: gitleaks args: ['--config=gitleaks-config.toml'] From e19dae3760106529e4255e22c1c4db6646d69b0d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Mar 2025 20:02:04 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- document_classifier/encoder.py | 2 +- document_classifier/load_dataset.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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