Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.PHONY: sync test lint fmt check

# Install/update dependencies
sync:
uv sync

# Run tests with coverage
# Usage: make test
# To run a specific test: make test TEST=test_file.py::test_function
test:
uv run pytest --cov-report term-missing --cov=openfga_sdk $(if $(TEST),$(TEST),test/)

# Run linter
lint:
uv run ruff check .

# Format code
fmt:
uv run ruff format .

# Run checks (lint + test)
check: test test

# Show help
doc:
@echo "Available targets:"
@echo " sync - Install/update dependencies"
@echo " test - Run tests with coverage (use TEST=path.to.test to run specific tests)"
@echo " lint - Run linter checks"
@echo " fmt - Format code"
@echo " check - Run both linting and tests"
@echo " doc - Show this help message"