forked from andreoliwa/nitpick
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pre-commit): add nitpick hooks to use on .pre-commit-config.yaml
- Loading branch information
1 parent
e5e1b7f
commit 92c13ae
Showing
13 changed files
with
270 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- id: nitpick-all | ||
name: Nitpick (All) | ||
description: Run nitpick together with several other flake8 plugins (check pyproject.toml) | ||
entry: flake8 | ||
language: python | ||
types: [python] | ||
always_run: true | ||
- id: nitpick-only | ||
name: Nitpick (Only) | ||
description: Check only nitpick errors (NIP) and ignore other flake8 plugins | ||
entry: flake8 --select=NIP | ||
language: python | ||
types: [python] | ||
always_run: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,4 @@ help: | |
dev: | ||
clear | ||
pre-commit run --all-files | ||
flake8 | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.