-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
39 lines (29 loc) · 1.01 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
.DEFAULT_GOAL := all
.PHONY: all coverage deps lint publish pull push schemas test timing
all: ## Run tests with coverage, lint and static-check code
make coverage
make lint
coverage: ## Run tests with coverage
python -m coverage erase
python -m coverage run --include=iuliia/* -m pytest -ra
python -m coverage report -m
deps: ## Install dependencies
python -m pip install --upgrade pip
python -m pip install black coverage flake8 flit mccabe mypy pylint pytest
lint: ## Lint and static-check code
python -m flake8 iuliia
python -m pylint iuliia
python -m mypy iuliia
publish: ## Publish to PyPi
python -m flit publish
pull: ## Pull code and schemas
git pull
cd iuliia/schemas && git pull && cd ../..
push: ## Push commits and tags
git push && git push --tags
schemas: ## Update schemas
cd iuliia/schemas && git submodule update --init --recursive && cd ../..
test: ## Run functional tests
python -m pytest -ra
timing: ## Run performance tests
TEST_TIMING=1 python -m pytest -s tests/test_timing.py