-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (31 loc) · 829 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
PHONY: install run virtualenv ipython clean test pflake8 fmt lint
install:
@echo "Installing for dev environment"
@.venv/bin/python -m pip install -e '.[test,dev]'
virtualenv:
@python -m venv .venv
run:
@python manage.py runserver
ipython:
@.venv/bin/ipython
test:
@.venv/bin/pytest -vs -s
lint:
@.venv/bin/pflake8 app kamila_project
fmt:
@.venv/bin/isort --profile=black -m 3 app kamila_project
@.venv/bin/black app kamila_project
clean: ## Clean unused files.
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name '__pycache__' -exec rm -rf {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;
@rm -rf .cache
@rm -rf .pytest_cache
@rm -rf .mypy_cache
@rm -rf build
@rm -rf dist
@rm -rf *.egg-info
@rm -rf htmlcov
@rm -rf .tox/
@rm -rf docs/_build