blob: 91ee70a28bdf2da37c47a09e1d1a07742841f357 (
plain)
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
28
29
30
|
--- itypes-1.1.0.orig/runtests
+++ itypes-1.1.0/runtests
@@ -6,7 +6,6 @@
PYTEST_ARGS = ['tests.py', '--tb=short']
-FLAKE8_ARGS = ['itypes.py', 'tests.py', '--ignore=E501']
COVERAGE_OPTIONS = {
'include': ['itypes.py', 'tests.py'],
}
@@ -25,13 +24,6 @@
sys.exit(ret)
-def flake8_main(args):
- print('Running flake8 code linting')
- ret = subprocess.call(['flake8'] + args)
- print('flake8 failed' if ret else 'flake8 passed')
- return ret
-
-
def fail_if_lacking_coverage(cov):
precent_covered = cov.report(
file=NullFile(), **COVERAGE_OPTIONS
@@ -82,5 +74,4 @@
# cov.start()
exit_on_failure(pytest.main(pytest_args))
# cov.stop()
- exit_on_failure(flake8_main(FLAKE8_ARGS))
# fail_if_lacking_coverage(cov)
|