Skip to content

Commit

Permalink
Use ruff in place of bandit and black (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored Dec 1, 2023
1 parent f87bb2a commit 982a28d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 104 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: ^simplipy/
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
1 change: 1 addition & 0 deletions examples/test_client_by_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ async def main() -> None:
# await system.async_set_away()
# await system.async_set_home()
# await system.async_set_off()

except SimplipyError as err:
_LOGGER.error(err)

Expand Down
1 change: 1 addition & 0 deletions examples/test_client_by_refresh_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async def main() -> None:
# await system.async_set_away()
# await system.async_set_home()
# await system.async_set_off()

except SimplipyError as err:
_LOGGER.error(err)

Expand Down
72 changes: 3 additions & 69 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 @@ -77,8 +77,6 @@ GitPython = ">=3.1.35"
Pygments = ">=2.15.0"
aresponses = "^2.1.6"
asynctest = "^0.13.0"
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 982a28d

Please sign in to comment.