diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e00d2c3f..22b5013e 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.20.0 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.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.18.1 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.6' hooks: - id: bandit args: ['-r', '--configfile=bandit-config.yml'] - repo: https://github.com/zricethezav/gitleaks - rev: 'v8.0.4' + rev: 'v8.28.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