-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# File introduces automated checks triggered on git events | ||
# to enable run `pip install pre-commit && pre-commit install` | ||
|
||
repos: | ||
- repo: local | ||
hooks: | ||
- id: yapf | ||
name: yapf | ||
language: python | ||
entry: yapf | ||
args: [-i, -vv] | ||
types: [python] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-docstring-first | ||
- id: check-json | ||
- id: check-added-large-files | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: requirements-txt-fixer | ||
- id: check-merge-conflict | ||
- id: double-quote-string-fixer | ||
- id: end-of-file-fixer | ||
- id: sort-simple-yaml | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes |
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,9 @@ | ||
# File configures YAPF to be used as a git hook with https://github.com/pre-commit/pre-commit | ||
|
||
- id: yapf | ||
name: yapf | ||
description: "A formatter for Python files." | ||
entry: yapf | ||
args: [-i] #inplace | ||
language: python | ||
types: [python] |