-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (24 loc) · 997 Bytes
/
justfile
File metadata and controls
31 lines (24 loc) · 997 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
# List available commands
default:
@just --list
# Check if all Python files in src/ are formatted according to ruff
check-python:
uv run ruff check src/
uv run ruff check --select I src/
uv run ruff format --check src/
uv run mypy src/ --disallow-untyped-defs --disallow-incomplete-defs
# Format all Python files in src/ using ruff
format-python:
uv run ruff check --fix --select I src/
uv run ruff format src/
uv run ruff check --fix src/
# Check if all C++ files in csrc/ are formatted according to clang-format
check-cpp:
find csrc/ -name "*.cpp" -o -name "*.cc" -o -name "*.cxx" -o -name "*.h" -o -name "*.hpp" | xargs clang-format --dry-run --Werror
# Format all C++ files in csrc/ using clang-format
format-cpp:
find csrc/ -name "*.cpp" -o -name "*.cc" -o -name "*.cxx" -o -name "*.h" -o -name "*.hpp" | xargs clang-format -i
format: format-cpp format-python
build:
uv run meson compile -C build/release/
check: check-python check-cpp build