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

set -x

# python style checks rely on `ruff` in path
if ! command -v ruff &> /dev/null; then
    echo "Installing Ruff ..."
    pip install ruff
fi

# run ruff linter
ruff check --fix ./api

# env files linting relies on `dotenv-linter` in path
if ! command -v dotenv-linter &> /dev/null; then
    echo "Installing dotenv-linter ..."
    pip install dotenv-linter
fi

dotenv-linter ./api/.env.example ./web/.env.example