Skip to content

Commit

Permalink
feat: add norminette pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
vcwild committed Aug 9, 2022
1 parent 03a4f33 commit 52aef6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
description: Runs norminette within pre-commit.
entry: norminette-hook
language: python
types: [python]
# for backward compatibility
files: ''
minimum_pre_commit_version: 0.15.0
types: [file]
files: \.(h|c)$
minimum_pre_commit_version: 2.9.0
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ Create a `.pre-commit-config.yaml` file in the root of your repository.
Add there the following lines:

```yaml
- repo: https://github.com/vcwild/norminette-hook
rev: v0.1.0
hooks:
- id: norminette-hook
default_language_version:
python: python3

repos:
- repo: https://github.com/vcwild/norminette-hook
rev: main
hooks:
- id: norminette-hook
```

0 comments on commit 52aef6f

Please sign in to comment.