-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1672 from aucampia/iwana-20220114T2135-precommit_ci
pre-commit and pre-commit-ci
- Loading branch information
Showing
4 changed files
with
75 additions
and
1 deletion.
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,25 @@ | ||
--- | ||
ci: | ||
# https://pre-commit.ci/#configuration | ||
autoupdate_schedule: weekly | ||
autofix_prs: false | ||
|
||
repos: | ||
- repo: local | ||
hooks: | ||
# using a local hook for black because of an issue that arises when using | ||
# pre-commit and setuptools-scm that results in version info being lost. | ||
# For more info see https://github.com/psf/black/issues/2493 | ||
# Based on https://github.com/psf/black/blob/main/.pre-commit-hooks.yaml | ||
- id: black | ||
name: black | ||
description: "Black: The uncompromising Python code formatter" | ||
entry: black | ||
language: python | ||
# WARNING: version should be the same as in `pyproject.toml`. | ||
additional_dependencies: [black==21.9b0] | ||
# This is here to defer file selection to black which will do it based on | ||
# black config. | ||
pass_filenames: false | ||
require_serial: true | ||
args: ["."] |
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
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