-
-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 620 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 620 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
all: clean test dists
.PHONY: docs
docs:
$(MAKE) -C docs html
.PHONY: test
test:
pytest
.PHONY: lint
lint:
ruff check dataset test
mypy --strict dataset
.PHONY: format
format:
ruff format dataset test
.PHONY: format-check
format-check:
ruff format --check dataset test
dists:
python -m build
release: dists
pip install -q twine
twine upload dist/*
.PHONY: clean
clean:
rm -rf dist build .eggs
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +