build: introduce uv as Python package manager (#16317)
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
This commit is contained in:
parent
f27a956c71
commit
12de1d175c
23 changed files with 6576 additions and 10991 deletions
14
dev/reformat
14
dev/reformat
|
|
@ -2,20 +2,14 @@
|
|||
|
||||
set -x
|
||||
|
||||
# style checks rely on commands in path
|
||||
if ! command -v ruff &> /dev/null || ! command -v dotenv-linter &> /dev/null; then
|
||||
echo "Installing linting tools (Ruff, dotenv-linter ...) ..."
|
||||
poetry install -C api --only lint
|
||||
fi
|
||||
|
||||
# run ruff linter
|
||||
poetry run -C api ruff check --fix ./
|
||||
uv run --directory api --group lint ruff check --fix ./
|
||||
|
||||
# run ruff formatter
|
||||
poetry run -C api ruff format ./
|
||||
uv run --directory api --group lint ruff format ./
|
||||
|
||||
# run dotenv-linter linter
|
||||
poetry run -P api dotenv-linter ./api/.env.example ./web/.env.example
|
||||
uv run --project api --group lint dotenv-linter ./api/.env.example ./web/.env.example
|
||||
|
||||
# run mypy check
|
||||
dev/run-mypy
|
||||
dev/mypy-check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue