We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822c2e3 commit 20c2988Copy full SHA for 20c2988
.travis.yml
@@ -4,9 +4,10 @@ python:
4
- "3.3"
5
- "3.4"
6
- "3.5"
7
+ - "pypy3"
8
9
install:
10
- pip install -r requirements.txt
11
12
script:
- - scripts/runtests
13
+ - python runtests.py
runtests.py
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env python
2
+import os
3
+import sys
+import subprocess
+
+FLAKE8_ARGS = ['drfdocs', '--ignore=E501']
+def exit_on_failure(command, message=None):
+ if command:
+ sys.exit(command)
+def flake8_main(args):
14
+ print('Running: flake8', *FLAKE8_ARGS, sep=' ')
15
+ command = subprocess.call(['flake8'] + args)
16
+ print("" if command else "Success. flake8 passed.")
17
+ return command
18
19
+exit_on_failure(flake8_main(FLAKE8_ARGS))
0 commit comments