-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
38 lines (31 loc) · 1002 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
29
30
31
32
33
34
35
36
37
38
.PHONY: check
check:
pytest
isort .
black .
flake8 .
mypy --disallow-any-unimported
.PHONY: unit
unit:
pytest --cov=sqlfmt --cov-report term-missing --cov-report xml:tests/.coverage/cov.xml tests/unit_tests
.PHONY: lint
lint:
isort .
black .
flake8 .
mypy --disallow-any-unimported
.PHONY: profiling
profiling: .profiling/all.rstats
snakeviz ./.profiling/all.rstats
.PHONY: profiling_gitlab
profiling_gitlab: .profiling/gitlab.rstats
snakeviz ./.profiling/gitlab.rstats
.PHONY: profiling_rittman
profiling_rittman: .profiling/rittman.rstats
snakeviz ./.profiling/rittman.rstats
.profiling/all.rstats: $(wildcard src/**/*)
python -m cProfile -o ./.profiling/all.rstats -m sqlfmt_primer --single-process
.profiling/gitlab.rstats: $(wildcard src/**/*)
python -m cProfile -o ./.profiling/gitlab.rstats -m sqlfmt_primer gitlab --single-process
.profiling/rittman.rstats: $(wildcard src/**/*)
python -m cProfile -o ./.profiling/rittman.rstats -m sqlfmt_primer rittman --single-process