Skip to content

Commit

Permalink
Merge pull request #129 from life4/upd-astroid
Browse files Browse the repository at this point in the history
Update astroid
  • Loading branch information
orsinium authored Sep 28, 2023
2 parents ba16dfd + 9be70fa commit f8ec86d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion deal/linter/_extractors/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ def _traverse_astroid(node: astroid.NodeNG) -> Iterator[astroid.NodeNG]:
todo: deque[astroid.NodeNG] = deque([node])
while todo:
node = todo.popleft()
if isinstance(node, astroid.TryExcept):
if isinstance(node, astroid.Try):
for h in node.handlers:
todo.extend(h.body)
todo.extend(node.orelse)
todo.extend(node.finalbody)
else:
todo.extend(node.get_children())
yield node
Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ classifiers = [

[tool.flit.metadata.requires-extra]
all = [
"astroid>=2.11.0", # for tyupe inference in linter
"deal-solver", # for formal verification
"hypothesis", # for test generation
"pygments", # for syntax highlighting in exceptions
"typeguard>=3.0.0", # for runtime type checking in tests
"vaa>=0.2.1", # for supporting schemes (like marshmallow) as validators
"astroid>=2.11.0", # for tyupe inference in linter
"deal-solver>=0.1.2", # for formal verification
"hypothesis", # for test generation
"pygments", # for syntax highlighting in exceptions
"typeguard>=3.0.0", # for runtime type checking in tests
"vaa>=0.2.1", # for supporting schemes (like marshmallow) as validators
]
integration = [ # integration tests
"astroid>=2.11.0",
"deal-solver",
"deal-solver>=0.1.2",
"hypothesis",
"pygments",
"typeguard<4.0.0",
Expand All @@ -61,7 +61,7 @@ lint = [
"unify",

# copy-pasted "all" extra
"deal-solver",
"deal-solver>=0.1.2",
"hypothesis",
"pygments",
"typeguard<4.0.0",
Expand Down

0 comments on commit f8ec86d

Please sign in to comment.