-
Notifications
You must be signed in to change notification settings - Fork 254
/
Makefile
41 lines (32 loc) · 882 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FOLDER_PROJECT = src/cartola
.PHONY: clean
clean:
@find . -type f -name '*.pyc' -delete
@find . -type d -name '__pycache__' | xargs rm -rf
@find . -type d -name '.mypy_cache' | xargs rm -rf
@find . -type d -name '*.egg*' | xargs rm -rf
@find . -type d -name '*.ropeproject' | xargs rm -rf
@rm -rf src/build/
@rm -rf src/dist/
@rm -rf docs/build/
@rm -rf references/
@rm -rf results/
@rm -f MANIFEST
@rm -f .coverage.*
black:
@black $(FOLDER_PROJECT) --config pyproject.toml $(args)
isort:
@isort $(FOLDER_PROJECT) $(args)
flake8:
@flake8 $(FOLDER_PROJECT)
mypy:
@mypy --ignore-missing-imports --exclude download_data.py$$ --exclude __main__.py$$ --strict src/cartola
pre-commit:
@pre-commit run --all-files
docker-build:
@kedro docker build --image cartola
docker-run:
@kedro docker run --image cartola
docker:
$(MAKE) docker-build
$(MAKE) docker-run