-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV-1484: Add isort ymlfmt toml sort and reformat (#390)
Add isort, ymlfmt and toml-sort to pre-commit-config and reformat.
- Loading branch information
Showing
37 changed files
with
512 additions
and
503 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,21 +1,46 @@ | ||
--- | ||
repos: | ||
- repo: [email protected]:Yelp/detect-secrets | ||
rev: v0.13.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: [ '--baseline', '.secrets.baseline' ] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 # last version to support py36 | ||
hooks: | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
args: [ --remove ] | ||
- id: no-commit-to-branch | ||
args: [ --branch, develop, --branch, master, --pattern, release/.* ] | ||
- id: pretty-format-json | ||
args: [ --autofix ] | ||
- id: trailing-whitespace | ||
args: [ --markdown-linebreak-ext=md ] | ||
- repo: [email protected]:Yelp/detect-secrets | ||
rev: v0.13.0 | ||
hooks: | ||
- id: detect-secrets | ||
args: [--baseline, .secrets.baseline] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 # last version to support py36 | ||
hooks: | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: no-commit-to-branch | ||
args: [--branch, develop, --branch, master, --pattern, release/.*] | ||
- id: pretty-format-json | ||
args: [--autofix] | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.6.4 # last version to support pre-commit 1.21.0 in Jenkins | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
args: [--profile, black] | ||
- id: isort | ||
name: isort (cython) | ||
types: [cython] | ||
args: [--profile, black] | ||
- id: isort | ||
name: isort (pyi) | ||
types: [pyi] | ||
args: [--profile, black] | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.1 | ||
hooks: | ||
- id: yamlfmt | ||
args: [--mapping, '2', --sequence, '4', --offset, '2', --width, '80'] | ||
- repo: https://github.com/pappasam/toml-sort | ||
rev: v0.19.0 # last version to support py36 | ||
hooks: | ||
- id: toml-sort | ||
args: [--in-place] |
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
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
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
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
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,2 +1,2 @@ | ||
from .json_validators import GDCJSONValidator | ||
from .graph_validators import GDCGraphValidator | ||
from .json_validators import GDCJSONValidator |
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
Oops, something went wrong.