-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (35 loc) · 863 Bytes
/
Copy pathjustfile
File metadata and controls
47 lines (35 loc) · 863 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
45
46
47
default:
@just --list
clean:
@echo "Cleaning cogency..."
@rm -rf dist build .pytest_cache .ruff_cache __pycache__ .venv
@find . -type d -name "__pycache__" -exec rm -rf {} +
install:
@uv sync
ci:
@uv run ruff format .
@uv run ruff check . --fix --unsafe-fixes
@uv run ruff check .
@uv run pyright
@uv run pyright -p pyright.evals.json
@uv run pyright -p pyright.tests.json
@uv run pytest tests -q
@uv build
example name="hello":
@uv run python examples/{{name}}.py
test:
@uv run pytest tests
cov:
@uv run pytest --cov=src/cogency tests/
format:
@uv run ruff format .
lint:
@uv run ruff check . --ignore F841
fix:
@uv run ruff check . --fix --unsafe-fixes
build:
@uv build
publish: ci build
@uv publish
commits:
@git --no-pager log --pretty=format:"%h | %ar | %s"