-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup toml, yaml, prettier in pre-commit (#1468)
* Update setup.cfg * [pre-commit] setup yaml in pre-commit hook * [pre-commit] setup toml prettier
- Loading branch information
Jeff Yang
authored
Nov 15, 2020
1 parent
7d054af
commit 12032b8
Showing
1 changed file
with
20 additions
and
7 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 |
---|---|---|
@@ -1,23 +1,36 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/prettier/pre-commit | ||
rev: main | ||
hooks: | ||
- id: prettier | ||
|
||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v1.9.4 | ||
hooks: | ||
- id: seed-isort-config | ||
args: [--exclude=^((examples|docs)/.*)$] | ||
- id: seed-isort-config | ||
args: [--exclude=^((examples|docs)/.*)$] | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 4.3.21-2 | ||
hooks: | ||
- id: isort | ||
- id: isort | ||
|
||
- repo: https://github.com/python/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
language_version: python3.7 | ||
- id: black | ||
language_version: python3.7 | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.7 | ||
hooks: | ||
- id: flake8 | ||
args: [--append-config=tox.ini] | ||
- id: flake8 | ||
args: [--append-config=tox.ini] |