-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update .pre-commit-config.yaml versions and add pre-commit.ci with autoupdate * remove old pre-commit workflow that has been replace by pre-commit.ci * update release notes * adjust yapf config temporarily because of yapf issue #1164 * formatting
- Loading branch information
1 parent
8c4edcc
commit 29b89f6
Showing
4 changed files
with
15 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,28 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-yapf # To format the code to conform YAPF | ||
rev: v0.31.0 | ||
- repo: https://github.com/google/yapf # To format the code to conform YAPF | ||
rev: v0.40.2 | ||
hooks: | ||
- id: yapf | ||
args: ['--in-place', '--recursive', '--style', 'google'] | ||
require_serial: true | ||
|
||
- repo: https://github.com/myint/docformatter # To format the doc strings to conform PEP257 | ||
rev: v1.4 | ||
- repo: https://github.com/PyCQA/docformatter # To format the doc strings to conform PEP257 | ||
rev: v1.7.5 | ||
hooks: | ||
- id: docformatter | ||
args: [--in-place] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks # Some common pre-commit hooks | ||
rev: v3.4.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-yaml # Checks the syntax of .yaml files. | ||
args: [--allow-multiple-documents] | ||
exclude: 'meta.yaml' # Exclude this because it gives an error for '%' in Line 1 and couldn't fix yet | ||
- id: end-of-file-fixer # Makes sure files end with a newline. | ||
- id: trailing-whitespace # Checks for any tabs or spaces after the last non-whitespace character on the line. | ||
- id: check-docstring-first # Checks that code comes after the docstrings. | ||
- id: check-yaml # Check valid yml file | ||
|
||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: monthly |
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