-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (46 loc) · 1.41 KB
/
Makefile
File metadata and controls
62 lines (46 loc) · 1.41 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
all: setup-env-variables setup-git-hooks install check test build-watch
.PHONY: build-watch
build-watch:
docker compose up --build --watch
check: check-format check-lint check-types check-terraform
check-format:
uv run ruff format . --diff
check-lint:
uv run ruff check .
.PHONY: check-terraform
check-terraform:
terraform fmt -check -recursive
terraform validate
check-types:
uv run mypy .
.PHONY: indexation
indexation:
uv run indexation https://sightcall.com/sitemap_index.xml --database-url postgresql://postgres:password@localhost:5432/vectordb
install:
uv lock --locked
uv sync --locked --group dev --group lint --group test --group indexation
lint:
uv run ruff format .
uv run ruff check . --fix
terraform fmt -recursive
semantic-release:
uv run semantic-release version --no-changelog --no-push --no-vcs-release --skip-build --no-commit --no-tag
uv lock
git add pyproject.toml uv.lock
git commit --allow-empty --amend --no-edit
.PHONY: setup-env-variables
setup-env-variables:
cp .env.example .env
setup-git-hooks:
chmod +x hooks/pre-commit
chmod +x hooks/pre-push
chmod +x hooks/post-commit
git config core.hooksPath hooks
test:
uv run pytest -v --cov=sightcall_qa_api --cov-report=xml
upgrade-dependencies:
uv lock --upgrade
.PHONY: watch
watch:
docker compose up --watch
.PHONY: all check check-format check-lint check-types install lint semantic-release setup-git-hooks test upgrade-dependencies