-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update pre-commit ruff and add isort + bandit
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |