Skip to content

Commit 7db2891

Browse files
committed
Add just recipe to lint justfile and fix formatting
1 parent 869d1c9 commit 7db2891

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

justfile

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ default: check-lockfile lint type-check test
44

55
# Check if the lockfile is up to date
66
check-lockfile:
7-
uv lock --locked
7+
uv lock --locked
88

99
# Lint code and check formatting
1010
lint +dirs="src tests": lint-justfile
11-
uv run ruff check {{ dirs }}
12-
uv run ruff format --check {{ dirs }}
11+
uv run ruff check {{ dirs }}
12+
uv run ruff format --check {{ dirs }}
1313

1414
lint-justfile:
15-
just --check --fmt --unstable
15+
just --check --fmt --unstable
1616

1717
# Validate static types using mypy
1818
type-check +dirs="src":
19-
uv run mypy {{ dirs }}
19+
uv run mypy {{ dirs }}
2020

2121
# Run tests using pytest
2222
test $COV=env("CI", "false") $FRR_VERSION=FRR_LATEST_MAJOR_VERSION:
23-
#!/usr/bin/env bash
24-
set -euxo pipefail
23+
#!/usr/bin/env bash
24+
set -euxo pipefail
2525

26-
args=()
27-
( $COV == "true" ) && args+=( "--cov" )
28-
uv run pytest tests ${args[@]}
26+
args=()
27+
( $COV == "true" ) && args+=( "--cov" )
28+
uv run pytest tests ${args[@]}
2929

30-
if [ $COV = "true" ]; then
31-
uv run coverage xml
32-
fi
30+
if [ $COV = "true" ]; then
31+
uv run coverage xml
32+
fi

0 commit comments

Comments
 (0)