File: django-sample

package info (click to toggle)
pylint-django 2.0.13-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: python: 1,807; sh: 13; makefile: 5
file content (17 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

run() {
  echo "Running “$@”"
  $@
}

cd $AUTOPKGTEST_TMP
run django-admin startproject testproject
cd testproject
run django-admin startapp testapp

# Now test that pylint-django works on those
run pylint --version
run pylint -E --load-plugins=pylint_django testapp/