Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]
Expand All @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion document_classifier/encoder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Encoding the url response """
"""Encoding the url response"""

import pandas as pd

Expand Down
2 changes: 1 addition & 1 deletion document_classifier/load_dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Module for loading dataset """
"""Module for loading dataset"""

from torch.utils.data import DataLoader, SequentialSampler, TensorDataset

Expand Down