ci: update .pre-commit-config.yaml

This commit is contained in:
Andrew
2024-03-17 17:24:28 -05:00
parent 96f5d9cba9
commit 5122e435f3

View File

@@ -1,20 +1,12 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.249"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types: [python]
- repo: local
hooks:
- id: bandit
name: bandit
entry: bandit
- id: black
name: black
entry: black
language: system
types: [python]
require_serial: true
args: ["-c", "bandit.yml"]
- id: check-added-large-files
name: Check for added large files
entry: check-added-large-files
@@ -35,6 +27,14 @@ repos:
language: system
types: [text]
stages: [commit, push, manual]
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
exclude: "^(test/*|examples/*|noxfile.py)"
require_serial: true
args: ["--config=.flake8"]
- id: pyupgrade
name: pyupgrade
description: Automatically upgrade syntax for newer versions.