File: lint.sh

package info (click to toggle)
python-matrix-common 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 144 kB
  • sloc: python: 239; sh: 10; makefile: 6
file content (21 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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=(
  "src"
  "tests"
)

# Print out the commands being run
set -x

isort "${files[@]}"
python3 -m black "${files[@]}"
flake8 "${files[@]}"
mypy "${files[@]}"