-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
28 lines (22 loc) · 732 Bytes
/
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
CODE = charamel scripts
TESTS = tests
VENV = poetry run
WIDTH = 88
.PHONY: pretty lint test coverage
pretty:
$(VENV) black --skip-string-normalization --line-length $(WIDTH) $(CODE) $(TESTS)
$(VENV) isort --apply --recursive --line-width $(WIDTH) $(CODE) $(TESTS)
$(VENV) unify --in-place --recursive $(CODE) $(TESTS)
lint:
$(VENV) black --check --skip-string-normalization --line-length $(WIDTH) $(CODE) $(TESTS)
$(VENV) flake8 --statistics --max-line-length $(WIDTH) $(CODE) $(TESTS)
$(VENV) pylint --rcfile=setup.cfg $(CODE)
$(VENV) mypy $(CODE)
test:
$(VENV) pytest tests
coverage:
$(VENV) pytest --cov=charamel
$(VENV) codecov
benchmark:
poetry install --extras=benchmark
$(VENV) python scripts/benchmark.py