File: pre-commit.txt

package info (click to toggle)
swiftsc 0.5-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 216 kB
  • sloc: python: 574; sh: 19; makefile: 6
file content (14 lines) | stat: -rwxr-xr-x 243 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

which py.test || exit 1
(
cd $(git rev-parse --show-toplevel)
find src -name '*.pyc' -delete
py.test -v src || exit 1
py.test-3 -v src || exit 1
(
cd src
pychecker -X -s swiftsc/*.py || exit 1
)
python setup.py check -r || exit 1
)