chore: merge lint dependency group into dev group of python packages (#18088)
This commit is contained in:
parent
9889aa10bd
commit
9d7357058a
10 changed files with 37 additions and 61 deletions
|
|
@ -27,17 +27,11 @@ done
|
|||
if $api_modified; then
|
||||
echo "Running Ruff linter on api module"
|
||||
|
||||
# python style checks rely on `ruff` in path
|
||||
if ! command -v ruff > /dev/null 2>&1; then
|
||||
echo "Installing linting tools (Ruff, dotenv-linter ...) ..."
|
||||
uv sync --project api --only-group lint
|
||||
fi
|
||||
|
||||
# run Ruff linter auto-fixing
|
||||
uv run --project api ruff check --fix ./api
|
||||
uv run --project api --dev ruff check --fix ./api
|
||||
|
||||
# run Ruff linter checks
|
||||
uv run --project api ruff check ./api || status=$?
|
||||
uv run --project api --dev ruff check ./api || status=$?
|
||||
|
||||
status=${status:-0}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue