-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* requirements * add coverage package * update .travis.yml to use makefile * skip setup on every command * reformat wip * first pass at flake8 errors * ignore invalid escape sequence in test * fix F811 redefinition * shellcheck * run linters before tests * update readme * fix absolute path in requirements.txt * urllib3 upper version bound * update readme * Add instructions for compiling requirements * instructions to rerun setup after compiling requirements * bump
- Loading branch information
Showing
257 changed files
with
6,316 additions
and
6,930 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
define PIP_COMPILE | ||
pip-compile $(1) --upgrade --verbose | ||
endef | ||
|
||
.SILENT: help | ||
.PHONY: help | ||
help: | ||
echo Available recipes: | ||
cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' | awk 'BEGIN { FS = ":.*?## " } { cnt++; a[cnt] = $$1; b[cnt] = $$2; if (length($$1) > max) max = length($$1) } END { for (i = 1; i <= cnt; i++) printf " $(shell tput setaf 6)%-*s$(shell tput setaf 0) %s\n", max, a[i], b[i] }' | ||
tput sgr0 | ||
|
||
.PHONY: _install-piptools | ||
_install-piptools: | ||
pip install -U pip-tools | ||
|
||
.PHONY: setup | ||
setup: _install-piptools ## Install requirements | ||
pip-sync requirements.txt dev-requirements.txt | ||
|
||
.PHONY: fmt | ||
fmt: ## Format code with black and isort | ||
black . | ||
isort . | ||
|
||
.PHONY: lint | ||
lint: ## Run linters | ||
flake8 . | ||
|
||
.PHONY: test | ||
test: lint ## Run tests | ||
pytest tests/flytekit/unit | ||
shellcheck **/*.sh | ||
|
||
requirements.txt: export CUSTOM_COMPILE_COMMAND := make requirements.txt | ||
requirements.txt: requirements.in _install-piptools | ||
$(call PIP_COMPILE,requirements.in) | ||
|
||
dev-requirements.txt: export CUSTOM_COMPILE_COMMAND := make dev-requirements.txt | ||
dev-requirements.txt: dev-requirements.in requirements.txt _install-piptools | ||
$(call PIP_COMPILE,dev-requirements.in) | ||
|
||
.PHONY: requirements | ||
requirements: requirements.txt dev-requirements.txt ## Compile requirements |
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,10 @@ | ||
-c requirements.txt | ||
|
||
black | ||
coverage | ||
flake8 | ||
flake8-black | ||
flake8-isort | ||
isort | ||
mock | ||
pytest |
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,34 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# make dev-requirements.txt | ||
# | ||
appdirs==1.4.4 # via -c requirements.txt, black | ||
attrs==19.3.0 # via -c requirements.txt, black, pytest | ||
black==19.10b0 # via -c requirements.txt, -r dev-requirements.in, flake8-black | ||
click==7.1.2 # via -c requirements.txt, black | ||
coverage==5.2.1 # via -r dev-requirements.in | ||
flake8-black==0.2.1 # via -r dev-requirements.in | ||
flake8-isort==4.0.0 # via -r dev-requirements.in | ||
flake8==3.8.3 # via -r dev-requirements.in, flake8-black, flake8-isort | ||
importlib-metadata==1.7.0 # via -c requirements.txt, flake8, pluggy, pytest | ||
iniconfig==1.0.1 # via pytest | ||
isort==5.3.2 # via -r dev-requirements.in, flake8-isort | ||
mccabe==0.6.1 # via flake8 | ||
mock==4.0.2 # via -r dev-requirements.in | ||
more-itertools==8.4.0 # via pytest | ||
packaging==20.4 # via pytest | ||
pathspec==0.8.0 # via -c requirements.txt, black | ||
pluggy==0.13.1 # via pytest | ||
py==1.9.0 # via pytest | ||
pycodestyle==2.6.0 # via flake8 | ||
pyflakes==2.2.0 # via flake8 | ||
pyparsing==2.4.7 # via packaging | ||
pytest==6.0.1 # via -r dev-requirements.in | ||
regex==2020.7.14 # via -c requirements.txt, black | ||
six==1.15.0 # via -c requirements.txt, packaging | ||
testfixtures==6.14.1 # via flake8-isort | ||
toml==0.10.1 # via -c requirements.txt, black, pytest | ||
typed-ast==1.4.1 # via -c requirements.txt, black | ||
zipp==3.1.0 # via -c requirements.txt, importlib-metadata |
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,5 +1,5 @@ | ||
from __future__ import absolute_import | ||
|
||
import flytekit.plugins | ||
import flytekit.plugins # noqa: F401 | ||
|
||
__version__ = '0.11.7' | ||
__version__ = "0.12.0b0" |
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.