forked from rustedpy/result
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 650 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 650 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
# phony trick from https://keleshev.com/my-book-writing-setup/
.PHONY: phony
install: phony
ifndef VIRTUAL_ENV
$(error install can only be run inside a Python virtual environment)
endif
@echo Installing dependencies...
pip install -r requirements-dev.txt
pip install -e .
lint: phony lint-flake lint-mypy
lint-flake: phony
flake8
lint-flake-pre310: phony
# Python <3.10 doesn't support pattern matching.
flake8 --extend-exclude tests/test_pattern_matching.py
lint-mypy: phony
mypy
test: phony
pytest
docs: phony
lazydocs \
--overview-file README.md \
--src-base-url https://github.com/rustedpy/result/blob/main/ \
./src/result