Skip to content

Commit

Permalink
add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
vgskye committed Nov 20, 2024
1 parent 2428d83 commit 6b1ef29
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-java
args: [--autofix, --aosp]
- id: pretty-format-kotlin
args: [--ktfmt, --autofix, --ktfmt-style=kotlinlang]

0 comments on commit 6b1ef29

Please sign in to comment.