File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- .PHONY : lint
2- lint :
3- # mypy .
4- black .
5-
6- .PHONY : test
7- test : unit-test integration-test
8-
9- .PHONY : unit-test
10- unit-test : lint
11- ifdef key
12- pytest tests/unit_tests -v -k $(key)
13- else
14- pytest tests/unit_tests
15- endif
16-
17- .PHONY : integration-test
18- integration-test : lint
19- ifdef key
20- pytest tests/integration_tests -v -k $(key)
21- else
22- pytest tests/integration_tests
23- endif
24-
25- .PHONY : check
26- check : lint test integration-test
1+ POETRY := poetry
2+ RUFF := .venv/bin/ruff
3+ PYTEST := .venv/bin/pytest
274
285.PHONY : build
296build : lint
30- poetry build
7+ $( POETRY ) build
318
329.PHONY : publish
3310publish : build
34- poetry publish --username=__token__ --password=$(INFTYAI_PYPI_TOKEN )
11+ $(POETRY ) publish --username=__token__ --password=$(INFTYAI_PYPI_TOKEN )
12+
13+ .PHONY : lint
14+ lint :
15+ $(RUFF ) check .
16+
17+ .PHONY : format
18+ format :
19+ $(RUFF ) format .
20+ $(RUFF ) check --fix .
21+
22+ .PHONY : test
23+ test : lint
24+ $(PYTEST ) tests/unit --timeout=15
25+
26+ .PHONY : test-integration
27+ test-integration : lint
28+ $(PYTEST ) tests/integration --timeout=30
29+ '
30+ .PHONY : test-all
31+ test-all : test test-integration
You can’t perform that action at this time.
0 commit comments