Skip to content

Commit

Permalink
update pre-commit ruff and add isort + bandit
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos authored Sep 10, 2024
1 parent 8e1cda5 commit 2e18b32
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.3
description: 'An extremely fast Python linter and code formatter, written in Rust'
rev: v0.6.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format

- repo: https://github.com/pycqa/isort
description: 'isort is a Python utility / library to sort imports alphabetically and automatically separate into sections and by type'
rev: 5.11.2
hooks:
- id: isort
name: isort (python)

- id: bandit
name: bandit
description: 'Bandit is a tool for finding common security issues in Python code'
entry: bandit
language: python
language_version: python3
types: [python]
require_serial: true

0 comments on commit 2e18b32

Please sign in to comment.