File: Makefile

package info (click to toggle)
sqlfmt 0.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,580 kB
  • sloc: python: 10,007; sql: 5,626; makefile: 39
file content (41 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download
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
40
41
.PHONY: check
check:
	uv sync --all-groups
	uv run ruff format .
	uv run ruff check . --fix
	uv run pytest
	uv run mypy

.PHONY: unit
unit:
	uv sync --group test
	uv run pytest --cov=sqlfmt --cov-report term-missing --cov-report xml:tests/.coverage/cov.xml tests/unit_tests

.PHONY: lint
lint:
	uv sync --all-groups
	uv run ruff format .
	uv run ruff check . --fix
	uv run mypy

.PHONY: profiling
profiling: .profiling/all.rstats
	uv sync --group dev
	uv run snakeviz ./.profiling/all.rstats

.PHONY: profiling_gitlab
profiling_gitlab: .profiling/gitlab.rstats
	uv sync --group dev
	uv run snakeviz ./.profiling/gitlab.rstats

.PHONY: profiling_rittman
profiling_rittman: .profiling/rittman.rstats
	uv sync --group dev
	uv run snakeviz ./.profiling/rittman.rstats

.profiling/all.rstats: $(wildcard src/**/*)
	uv run python -m cProfile -o ./.profiling/all.rstats -m sqlfmt_primer --single-process
.profiling/gitlab.rstats: $(wildcard src/**/*)
	uv run python -m cProfile -o ./.profiling/gitlab.rstats -m sqlfmt_primer gitlab --single-process
.profiling/rittman.rstats: $(wildcard src/**/*)
	uv run python -m cProfile -o ./.profiling/rittman.rstats -m sqlfmt_primer rittman --single-process