forked from ContrastoAI/cartai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 945 Bytes
/
Makefile
File metadata and controls
44 lines (35 loc) · 945 Bytes
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
.DEFAULT_GOAL := all
.PHONY: all
all: format lint
.PHONY: .uv
.uv: ## Check that uv is installed
@uv --version || echo 'Please install uv: https://docs.astral.sh/uv/getting-started/installation/'
.PHONY: .pre-commit
.pre-commit: ## Check that pre-commit is installed
@pre-commit -V || echo 'Please install pre-commit: https://pre-commit.com/'
.PHONY: format
format:
uv sync --group lint
uv run ruff format
uv run ruff check --fix
.PHONY: lint
lint:
uv sync --group lint
uv run ruff format --check
#uv run ruff check
uv run --all-groups mypy .
.PHONY: test
test:
uv sync --group test
uv run pytest
.PHONY: pre-commit
pre-commit:
uv sync --group lint
uv run pre-commit run --all-files
.PHONY: install-all
install-all:
uv sync --all-groups
.PHONY: run_readme
run_readme:
# uv pip install -e .
uv run cartai readme --description "Crafting intelligent E2E documentation for trustworthy AI." --code "." --output "README_new.md"