Skip to content

Commit

Permalink
Replace bandit/flake8/isort with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Apr 16, 2024
1 parent 7f98352 commit f39ad4c
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 293 deletions.
9 changes: 0 additions & 9 deletions .flake8

This file was deleted.

18 changes: 3 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
repos:
- repo: local
hooks:
- id: bandit
name: bandit
entry: bandit
language: system
types: [python]
require_serial: true
args: ["-c", "bandit.yml"]
- id: black
name: black
entry: black
Expand All @@ -34,17 +27,12 @@ repos:
language: system
types: [text]
stages: [commit, push, manual]
- id: flake8
name: flake8
entry: flake8
- id: ruff
name: ruff
entry: ruff check
language: system
types: [python]
require_serial: true
- id: isort
name: Sort python imports
entry: isort
language: system
types: [python]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
Expand Down
8 changes: 1 addition & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,9 @@ def precommit(session: Session) -> None:
"""Lint using pre-commit."""
args = session.posargs or ["run", "--all-files", "--show-diff-on-failure"]
session.install(
"bandit",
"black",
"darglint",
"flake8",
"flake8-bugbear",
"flake8-docstrings",
"flake8-rst-docstrings",
"isort",
"pep8-naming",
"ruff",
"pre-commit",
"pre-commit-hooks",
)
Expand Down
Loading

0 comments on commit f39ad4c

Please sign in to comment.