forked from dosisod/refurb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 616 Bytes
/
Makefile
File metadata and controls
40 lines (27 loc) · 616 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
.PHONY: install ruff mypy black isort test test-e2e refurb docs
all: ruff mypy black isort test refurb docs
install:
pip install .
pip install -r dev-requirements.txt
install-local:
pip install -e .
ruff:
ruff refurb test
mypy:
mypy refurb
mypy test --exclude "test/data*"
black:
black refurb test
isort:
isort . --diff --check
test:
pytest
test-e2e: install-local
refurb test/e2e/dummy.py
refurb:
refurb refurb test/*.py
test/%.txt: test/%.py
refurb "$^" --enable-all --quiet > "$@" || true
update-tests: $(patsubst %.py,%.txt,$(wildcard test/data*/*.py))
docs:
python3 -m docs.gen_checks