-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
35 lines (29 loc) · 963 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
.PHONY: check
check:
ruff format .
ruff check . --fix
pytest
mypy
.PHONY: unit
unit:
pytest --cov=sqlfmt --cov-report term-missing --cov-report xml:tests/.coverage/cov.xml tests/unit_tests
.PHONY: lint
lint:
ruff format .
ruff check . --fix
mypy
.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