-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (37 loc) · 1.04 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
.PHONY: install test tox build install-package clean pre-commit-install pre-commit help
# Install pipenv
install-pipenv:
pip install pipenv
# Activate shell
activate-shell:
pipenv shell
# Install dependencies
install:
pipenv install --dev
# Clean up
clean:
pipenv --rm
rm -rf .pytest_cache
rm -rf .tox
rm -rf dist
rm -rf build
rm -rf .mypy_cache
rm -rf *.egg-info
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
# Install pre-commit hooks
pre-commit-install:
pipenv run pre-commit install
# Run pre-commit hooks
pre-commit:
pipenv run pre-commit run --all-files
help:
@echo "Available targets:"
@echo " install-pipenv Install pipenv"
@echo " activate-shell Activate pipenv shell"
@echo " install Install dependencies"
@echo " clean Clean up"
@echo " pre-commit-install Install pre-commit hooks"
@echo " pre-commit Run pre-commit hooks"
@echo " help Show this help message"