Skip to content

Commit

Permalink
√Use ruff in place of bandit and black
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya committed Dec 1, 2023
1 parent e9e55bb commit c495ebf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 139 deletions.
20 changes: 0 additions & 20 deletions .bandit.yaml

This file was deleted.

18 changes: 5 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@
repos:
- repo: local
hooks:
- id: bandit
name: 🎰 Checking for vulnerabilities using bandit
language: system
types: [python]
entry: poetry run bandit
files: ^aiopurpleair/
require_serial: true
- id: black
name: ☕️ Formatting code using black
language: system
types: [python]
entry: poetry run black
require_serial: true
- id: blacken-docs
name: ☕️ Format documentation using black
language: system
Expand Down Expand Up @@ -93,6 +80,11 @@ repos:
language: system
types: [text]
entry: poetry run fix-byte-order-marker
- id: format
name: ☕️ Formatting code using ruff
language: system
types: [python]
entry: poetry run ruff format
- id: isort
name: 🔀 Sorting all imports with isort
language: system
Expand Down
107 changes: 3 additions & 104 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ yarl = ">=1.9.2"
GitPython = ">=3.1.35"
Pygments = ">=2.15.0"
aresponses = "^2.1.6"
bandit = "^1.7.4"
black = ">=22.10,<24.0"
blacken-docs = "^1.12.1"
codespell = "^2.2.2"
coverage = {version = ">=6.5,<8.0", extras = ["toml"]}
Expand Down

0 comments on commit c495ebf

Please sign in to comment.