vpnunit/script/qa

23 lines
345 B
Bash
Executable File

#!/bin/bash
# Software Quality Assurance tests (formatters, linters, ...)
if [ "$1" == "--dry-run" ]; then
BLACK_FLAGS="--check"
fi
set -euo pipefail
cd "$(dirname "$0")/.."
FILES=(
main.py
)
# Code formatting
python3 -m black ${BLACK_FLAGS:-} "${FILES[@]}"
# Linters
python3 -m flake8 "${FILES[@]}"
python3 -m mypy "${FILES[@]}"