Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update astroid #129

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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