-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (40 loc) · 905 Bytes
/
Makefile
File metadata and controls
49 lines (40 loc) · 905 Bytes
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 := install-dev
default: init install-dev
.PHONY: init
init:
python -m pip install --upgrade pip wheel setuptools build
.PHONY: install
install:
python -m pip install --upgrade .
.PHONY: install-dev
install-dev:
python -m pip install --upgrade --editable .[dev,tests,docs]
.PHONY: lint
lint:
python -m isort src/
python -m black src/
.PHONY: pylint
pylint:
python -m pylint src/
.PHONY: test
test:
python -m pytest
.PHONY: build-dist
build-dist:
python -m pip install --upgrade build
python -m build
.PHONY: clean
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
find . -name '.mypy_cache' -exec rm -rf {} +
rm -rf .tox
rm -f coverage.xml
rm -f coverage.json
rm -rf htmlcov
rm -rf .coverage
rm -rf .coverage.*
find . -name '.pytest_cache' -exec rm -rf {} +
rm -rf dist
rm -rf build