-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 #3852 from krzysztofwolski/paint-it-black
Use black code formatter
- Loading branch information
Showing
688 changed files
with
32,754 additions
and
23,543 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
workflow "Linters" { | ||
on = "push" | ||
resolves = ["Black Linter", "Flake8 Linter"] | ||
} | ||
|
||
action "Build" { | ||
uses = "jefftriplett/python-actions@ba888adab5b57956dce82b7dfc06e87b65090a6d" | ||
args = "pip install flake8 black" | ||
env = { | ||
VENV_DIR = "/opt/" | ||
} | ||
} | ||
|
||
action "Black Linter" { | ||
uses = "jefftriplett/python-actions@ba888adab5b57956dce82b7dfc06e87b65090a6d" | ||
args = "black --check saleor tests" | ||
needs = ["Build"] | ||
env = { | ||
VENV_DIR = "/opt/" | ||
} | ||
} | ||
|
||
action "Flake8 Linter" { | ||
uses = "jefftriplett/python-actions@ba888adab5b57956dce82b7dfc06e87b65090a6d" | ||
args = "flake8 saleor tests" | ||
needs = ["Build"] | ||
env = { | ||
VENV_DIR = "/opt/" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 18.9b0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.1.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: flake8 | ||
|
||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v1.9.0 | ||
hooks: | ||
- id: seed-isort-config | ||
|
||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.18 | ||
hooks: | ||
- id: isort |
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
Oops, something went wrong.