Skip to content

Commit

Permalink
Add basic justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Sep 13, 2024
1 parent 363d3d6 commit 92f9ae1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
default: check-lockfile lint type-check test

# Check if the lockfile is up to date
check-lockfile:
uv lock --locked

# Lint code and check formatting using ruff
lint:
uv run ruff check src tests
uv run ruff format --check src tests

# Validate static types using mypy
type-check:
uv run mypy src

# Run tests using pytest
test:
uv run pytest tests

0 comments on commit 92f9ae1

Please sign in to comment.