Skip to content

Commit

Permalink
Fix pre-commit migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Oct 10, 2024
1 parent e6a2dde commit d11cbea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ default_language_version:
python: python3
files: '.py'
exclude: ".env,.yml,.gitignore,.git,.md,.txt"
default_stages: [Nonepre-pushNone, Nonepre-commitNone]
default_stages: [pre-commit]
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
name: Bandit
stages: [Nonepre-commitNone]
stages: [pre-commit]
additional_dependencies: ["bandit[toml]"]

- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
name: Black
stages: [Nonepre-commitNone]
stages: [pre-commit]

- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
Expand All @@ -27,21 +27,22 @@ repos:
args: ["--in-place", "--remove-unused-variables", "--recursive"]
name: AutoFlake
description: "Format with AutoFlake"
stages: [Nonepre-commitNone]
stages: [pre-commit]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
name: Ruff
args: ["--fix", "--exit-non-zero-on-fix", "--config", "pyproject.toml"]
stages: [pre-commit]

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
name: ISort
description: "Format with Isort"
stages: [Nonepre-commitNone]
stages: [pre-commit]


0 comments on commit d11cbea

Please sign in to comment.