Skip to content

Commit

Permalink
feat: add ruff pre-commit hook for format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Dec 4, 2023
1 parent 4e33cbb commit 2b9a183
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
dependencies:
- buf
- pip
- pre-commit
- protobuf = 3.20.1 # protobuf==3.20 C extensions aren't compatible with 3.19.4
- protoletariat >= 2.0.0
- pytest >= 7.0.0
Expand Down

0 comments on commit 2b9a183

Please sign in to comment.