Skip to content

Commit

Permalink
exclude problems from flake8 testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaclell committed Feb 3, 2019
1 parent 4941eb7 commit 5c1fb18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py_plan/total_order.py
Expand Up @@ -250,7 +250,7 @@ def predecessors(self, node):
try:
next(pattern_match(p, self.achievable,
partial=True))
except Exception as e:
except Exception:
invalid = True
break

Expand Down
2 changes: 1 addition & 1 deletion py_plan/unification.py
Expand Up @@ -37,7 +37,7 @@ def execute_functions(fun, s=()):
return execute_functions(fun[2], s)

if callable(fun[0]):
return fun[0](*[execute_functions(ele, s) for ele in fun[1:]])
return fun[0](*[execute_functions(ele, s) for ele in fun[1:]])
else:
return tuple(execute_functions(ele, s) for ele in fun)
if fun in s:
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Expand Up @@ -18,5 +18,9 @@ testpaths =
branch = true
omit =
py_plan/__init__.py
py_plan/problems/*
tests/*

[flake8]
exclude =
py_plan/problems

0 comments on commit 5c1fb18

Please sign in to comment.