Skip to content

Commit 270adae

Browse files
committed
add pre-commit config
1 parent 9f2df70 commit 270adae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.7.3
4+
hooks:
5+
- id: ruff
6+
args: [ --fix ]
7+
- id: ruff-format
8+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
9+
rev: v2.14.0
10+
hooks:
11+
- id: pretty-format-java
12+
args: [--autofix, --aosp]
13+
- id: pretty-format-kotlin
14+
args: [--ktfmt, --autofix, --ktfmt-style=kotlinlang]

0 commit comments

Comments
 (0)