Skip to content

Fix undefined names and add ruff F821 pre-commit check - #500

Open
Souravrajvi0 wants to merge 2 commits into
BerkeleyLearnVerify:mainfrom
Souravrajvi0:feat/fix-undefined-names-e7f7
Open

Fix undefined names and add ruff F821 pre-commit check#500
Souravrajvi0 wants to merge 2 commits into
BerkeleyLearnVerify:mainfrom
Souravrajvi0:feat/fix-undefined-names-e7f7

Conversation

@Souravrajvi0

@Souravrajvi0 Souravrajvi0 commented Aug 28, 2026

Copy link
Copy Markdown

Description

Fix undefined names in src/scenic and add ruff F821 pre-commit check (#493).

Issue Link

Fixes #493

Checklist

  • I have tested the changes locally via pytest and/or other means
  • I have added or updated relevant documentation
  • I have autoformatted the code with black and isort
  • I have added test cases (if applicable)

Additional Notes

N/A

Resolve 15 pyflakes F821 findings across src/scenic, including three
runtime NameErrors in OperatorDistribution.evaluateInner, Vector.cross,
and PolygonalFootprintRegion.containsRegionInner. Add a ruff-check hook
scoped to src/ with --select F821 and --target-version py311, plus
regression tests for the three bugs.
@Souravrajvi0
Souravrajvi0 marked this pull request as draft August 28, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Three NameErrors in src/scenic, and nothing checks for undefined names

1 participant