Skip to content

Commit

Permalink
Switch to ruff and tidy up pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmoore committed Jun 28, 2023
1 parent 87cec30 commit 95b2434
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +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/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-builtin-literals
Expand All @@ -13,17 +11,14 @@ repos:
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.1.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.270
hooks:
- id: flake8
additional_dependencies: ["flake8-bugbear == 20.1.2"]
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
files: \.py$
- id: ruff

0 comments on commit 95b2434

Please sign in to comment.