File size: 467 Bytes
a8b3f00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

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 ./api

# run ruff formatter
poetry run -C api ruff format ./api

# run dotenv-linter linter
poetry run -C api dotenv-linter ./api/.env.example ./web/.env.example