File: check

package info (click to toggle)
python-ttystatus 0.38-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 280 kB
  • sloc: python: 1,312; sh: 20; makefile: 3
file content (27 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

set -eu

title()
{
    printf '\n\n%s\n' "$@"
    for i in $(seq 77)
    do
        printf "-"
    done
    printf '\n'
}

title "Python2 unit tests"
python2 -m CoverageTestRunner --ignore-missing-from=without-tests
rm -f .coverage

title "Python3 unit tests"
python3 -m CoverageTestRunner --ignore-missing-from=without-tests
rm -f .coverage

title "Style checks"
pycodestyle ttystatus

title "Static checks"
PYTHONPATH=. pylint3 --rcfile=pylint.conf ttystatus