-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 747 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 747 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
# .DEFAULT_GOAL := help
.PHONY: coverage deps testdeps lint test
coverage: ## Run tests with coverage
python -m coverage erase
python -m coverage run -m pytest -ra
python -m coverage report -m
deps:
poetry install
poetry shell
# pip install --upgrade pip
# pip install -r requirements.txt
testdeps:
poetry add --dev black coverage flake8 pytest
# pip install black coverage flake8 pytest
format:
poetry run python -m black tftokenizers tests
# python -m black tftokenizers tests
lint:
poetry run python -m flake8 tftokenizers tests
python -m flake8 tftokenizers tests
test:
poetry run python -m pytest -ra
# python -m pytest -ra
tox:
poetry run tox
build:
make deps
make testdeps
make format
make tox
# make coverage