-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
57 lines (49 loc) · 1.29 KB
/
justfile
File metadata and controls
57 lines (49 loc) · 1.29 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
# Justfile for fips
# Show available commands
list:
@just --list
# Install dependencies with uv
install:
@echo "Installing dependencies with uv..."
uv sync --all-extras
# Build HTML documentation using Sphinx
build-docs:
@echo "Building HTML documentation..."
rm -rf docs/_build/ docs/reference/api/
uv run sphinx-build -M html docs docs/_build
# Clean up build artifacts and cache files
clean:
@echo "Cleaning up generated files..."
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache/
rm -rf .ruff_cache/
rm -rf .coverage
rm -rf coverage.xml
rm -rf junit.xml
rm -rf docs/_build/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name '*.pyc' -delete
find . -type f -name '*.pyo' -delete
# Run pre-commit hooks on all files
pre-commit:
@echo "Running pre-commit on all files..."
uv run pre-commit run --all-files
# Run linting, type checking, and tests
quality-check:
@echo "Running quality checks..."
@echo "Linting with ruff..."
uv run ruff check src/fips
@echo "Type checking with pyright..."
uv run pyright src/fips
just test
# Run ruff fixes and formatting
ruff:
@echo "Running ruff fixes and formatting..."
uv run ruff check --fix src/fips
uv run ruff format src/fips
# Run tests with pytest
test:
@echo "Running tests..."
uv run pytest -v