Skip to content

Commit

Permalink
style(precommit): replace pyupgrade/flake with ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Mar 4, 2023
1 parent 54ffb73 commit 66c6793
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 91 deletions.
27 changes: 8 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args:
- --py3-plus
- --keep-runtime-typing
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand All @@ -16,24 +9,20 @@ repos:
- id: end-of-file-fixer
exclude: ^docs
- id: check-executables-have-shebangs
- repo: https://github.com/myint/autoflake
rev: v2.0.1
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.245"
hooks:
- id: autoflake
- id: ruff
args:
- --recursive
- --in-place
- --remove-all-unused-imports
- --ignore-init-module-imports
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- --fix
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/python-poetry/poetry
rev: 1.4.0
hooks:
Expand Down
98 changes: 28 additions & 70 deletions poetry.lock

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

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ Wand = "~0.6"
rich = "~9.10"

[tool.poetry.group.dev.dependencies]
autoflake = "^1.4"
coveralls = "^3.0.0"
flake8 = "^3.8.4"
isort = "^5.7.0"
black = "^23.1.0"
pytest = "^6.2.2"
Expand All @@ -48,6 +46,7 @@ pytest-sugar = "^0.9.4"
pytest-cov = "^2.11.1"
bump2version = "^1.0.1"
pre-commit = "^3.1.1"
ruff = "^0.0.254"


[tool.poetry.group.docs]
Expand Down

0 comments on commit 66c6793

Please sign in to comment.