Skip to content

Commit

Permalink
Pre commit new hooks (#360)
Browse files Browse the repository at this point in the history
* Add pre-commit hooks

* Bump ruff

* Bump ruff

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
  • Loading branch information
bieniu and bieniu committed Feb 6, 2024
1 parent ca02de2 commit 78f4ab1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
rev: v0.2.1
hooks:
- id: ruff
args:
Expand All @@ -11,9 +11,15 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-toml
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: pretty-format-json
args:
- --no-sort-keys
- id: no-commit-to-branch
args:
- --branch=master
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruff==0.2.0
ruff==0.2.1

0 comments on commit 78f4ab1

Please sign in to comment.