aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-itypes/disable-flake8.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-26 19:55:41 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-10-09 08:03:08 -0300
commit0f688885f04441c7034b2d99310ee12501fbecfa (patch)
treeee6e91c8b3bb7f3ce9df11eff1f684634c49acd6 /community/py3-itypes/disable-flake8.patch
parent138a5650dbec3be0284d0dc12f727f41a46cb090 (diff)
downloadaports-0f688885f04441c7034b2d99310ee12501fbecfa.tar.bz2
aports-0f688885f04441c7034b2d99310ee12501fbecfa.tar.xz
community/py3-itypes: move from testing
Diffstat (limited to 'community/py3-itypes/disable-flake8.patch')
-rw-r--r--community/py3-itypes/disable-flake8.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/py3-itypes/disable-flake8.patch b/community/py3-itypes/disable-flake8.patch
new file mode 100644
index 0000000000..91ee70a28b
--- /dev/null
+++ b/community/py3-itypes/disable-flake8.patch
@@ -0,0 +1,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)