Skip to content

Commit b8c8f07

Browse files
authored
Merge pull request #55 from romanagureev/feat/pre-commit-hook
WIP: Add pre-commit hook
2 parents 76ef2fd + 54de1a7 commit b8c8f07

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- id: mamushi
2+
name: format vyper
3+
description: "Run 'mamushi' for Vyper formatting"
4+
entry: mamushi
5+
language: system
6+
# types: [ vyper ]
7+
files: "\\.(vy|vyi)$" # remove when type `vyper` available
8+
# additional_dependencies: ['identify==2.6.8']

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ Output the result to console instead of overwriting:
3232

3333
`mamushi --in-place False`
3434

35+
### pre-commit
36+
Add to your `.pre-commit-config.yaml`:
37+
```yaml
38+
repos:
39+
- repo: https://github.com/benber86/mamushi
40+
rev: main
41+
hooks:
42+
- id: mamushi
43+
args: [ --line-length=100 ]
44+
```
45+
3546
3647
## Notes
3748

0 commit comments

Comments
 (0)