Skip to content

Commit 1e49255

Browse files
authored
Merge pull request kivy#1673 from AndreMiras/feature/tox_update_and_linter_fixes
tox update and linter fixes
2 parents dec1bad + 757b7c0 commit 1e49255

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

pythonforandroid/graph.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from copy import deepcopy
22
from itertools import product
33

4-
from pythonforandroid.logger import (info, warning)
4+
from pythonforandroid.logger import info
55
from pythonforandroid.recipe import Recipe
66
from pythonforandroid.bootstrap import Bootstrap
77
from pythonforandroid.util import BuildInterruptingException
@@ -126,11 +126,6 @@ def get_recipe_order_and_bootstrap(ctx, names, bs=None):
126126
info('Circular dependency found in graph {}, skipping it.'.format(
127127
possible_order))
128128
continue
129-
except:
130-
warning('Failed to import recipe named {}; the recipe exists '
131-
'but appears broken.'.format(name))
132-
warning('Exception was:')
133-
raise
134129
orders.append(list(order))
135130

136131
# prefer python2 and SDL2 if available

pythonforandroid/recipes/android/src/android/runnable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __call__(self, *args, **kwargs):
3333
def run(self):
3434
try:
3535
self.func(*self.args, **self.kwargs)
36-
except:
36+
except: # noqa E722
3737
import traceback
3838
traceback.print_exc()
3939

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tox]
22
envlist = pep8,py27,py3
3+
basepython = python3
34

45
[testenv]
56
deps =
@@ -17,6 +18,6 @@ commands = flake8 pythonforandroid/ tests/ ci/
1718
ignore =
1819
E123, E124, E126,
1920
E226,
20-
E402, E501, E722,
21-
F812, F841, W503,
21+
E402, E501,
22+
F841, W503,
2223
W504

0 commit comments

Comments
 (0)