22 lines
391 B
Bash
Executable File
22 lines
391 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Runs linting scripts and type checking
|
|
# isort - sorts import statements
|
|
# black - opinionated code formatter
|
|
# flake8 - lints and finds mistakes
|
|
# mypy - checks type annotations
|
|
|
|
set -e
|
|
|
|
files=(
|
|
"ldap_auth_provider.py"
|
|
"tests"
|
|
)
|
|
|
|
# Print out the commands being run
|
|
set -x
|
|
|
|
isort "${files[@]}"
|
|
python3 -m black "${files[@]}"
|
|
flake8 "${files[@]}"
|
|
mypy "${files[@]}"
|