-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (38 loc) · 1.18 KB
/
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
42
43
44
45
46
47
48
49
.DEFAULT_GOAL := help
APP:=git-migration
install: ## Install an editable version of this app
install:
pipenv run pip install --editable .
uninstall: ## Uninstall this app
pipenv run pip uninstall -y $(APP)
format: ## Auto-format and check pep8
pipenv run yapf -i $$(find * -type f -name '*.py')
pipenv run flake8 ./app ./tests
format-yaml: ## Removes comments from YAML files, recommended to use in-editor formatter instead
cat config.yml | pipenv run yq -y . > new_config.yml
mv new_config.yml config.yml
test: ## Run tests
pipenv run pytest
pipenv run flake8 ./app ./tests
dist: ## Create a binary dist
dist: clean
(cd $(BASE) && $(PYTHON) setup.py sdist)
.PHONY: tags
tags: ## Create tags for code navigation
rm -f TAGS
etags -a $$(find * -type f -name '*.py')
clean: ## Clean all temporary files
clean:
pipenv --rm || true
find * -type f -name *.pyc | xargs rm -f
find * -type f -name *~ | xargs rm -f
find * -type d -name __pycache__ | xargs rm -rf
rm -rf *.egg-info
rm -rf dist/
rm -f *.csv
rm -rf .cache/
rm -rf .eggs/
reset: ## Remove all logs and folders with repo clones
rm -rf logs/
rm -rf syncDirectory/
include scripts/help.mk # Must be included last.