forked from elastic/elasticsearch-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
black
formatter as pre-commit step (elastic#189)
* Add `black-jupyter` pre-commit hook * apply `black` formatting everywhere * CI: remove Android from runner, set timeout=60 * directly remove irrelevant software without action * add df output
- Loading branch information
Showing
77 changed files
with
8,535 additions
and
8,637 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
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,20 +1,24 @@ | ||
# this is the list of notebooks that are integrated with the testing framework | ||
NOTEBOOKS = $(shell bin/find-notebooks-to-test.sh) | ||
VENV = .venv | ||
|
||
.PHONY: install pre-commit nbtest test notebooks | ||
.PHONY: install install-pre-commit install-nbtest test notebooks | ||
|
||
test: nbtest notebooks | ||
test: install-nbtest notebooks | ||
|
||
notebooks: | ||
bin/nbtest $(NOTEBOOKS) | ||
|
||
install: pre-commit nbtest | ||
pre-commit: install-pre-commit | ||
$(VENV)/bin/pre-commit run --all-files | ||
|
||
pre-commit: | ||
python -m venv .venv | ||
.venv/bin/pip install -qqq -r requirements-dev.txt | ||
.venv/bin/pre-commit install | ||
install: install-pre-commit install-nbtest | ||
|
||
nbtest: | ||
python3 -m venv .venv | ||
.venv/bin/pip install -qqq elastic-nbtest | ||
install-pre-commit: | ||
python -m venv $(VENV) | ||
$(VENV)/bin/pip install -qqq -r requirements-dev.txt | ||
$(VENV)/bin/pre-commit install | ||
|
||
install-nbtest: | ||
python3 -m venv $(VENV) | ||
$(VENV)/bin/pip install -qqq elastic-nbtest |
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
Oops, something went wrong.