Skip to content

Commit

Permalink
Add Cargo workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
treiher committed Nov 22, 2024
1 parent ac918b2 commit 6101f4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
File renamed without changes.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[workspace]
members = [
"frontend",
]
resolver = "2"
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ check_kacl:
uv run -- kacl-cli verify

check_frontend:
cargo fmt --manifest-path=frontend/Cargo.toml -- --check
cargo check --manifest-path=frontend/Cargo.toml
cargo clippy --manifest-path=frontend/Cargo.toml -- --warn clippy::pedantic --deny warnings
cargo fmt -- --check
cargo check
cargo clippy -- --warn clippy::pedantic --deny warnings

check_backend: check_lockfile check_black check_ruff check_mypy

Expand All @@ -49,7 +49,7 @@ check_mypy:
.PHONY: format

format:
cargo fmt --manifest-path=frontend/Cargo.toml
cargo fmt
uv run -- ruff check --fix-only $(PYTHON_PACKAGES) | true
uv run -- black $(PYTHON_PACKAGES)

Expand All @@ -58,7 +58,7 @@ format:
test: test_frontend test_backend test_installation test_e2e

test_frontend:
cargo test --manifest-path=frontend/Cargo.toml
cargo test

test_backend:
mkdir -p valens/frontend
Expand Down

0 comments on commit 6101f4c

Please sign in to comment.