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

refactor: resolve ruff check F821 for undefined name #2374

Merged
merged 1 commit into from
Nov 18, 2024
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
2 changes: 1 addition & 1 deletion .docs/Notebooks/vtk_pathlines_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def fill_zone_1():
# Show the GIF.

# +
from IPython.core.display import Image
from IPython.display import Image, display

display(Image(data=open(gif_path, "rb").read(), format="gif"))
# -
Expand Down
1 change: 1 addition & 0 deletions autotest/test_plot_particle_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from matplotlib.collections import LineCollection, PathCollection
from modflow_devtools.markers import requires_exe

import flopy
from flopy.modflow import Modflow
from flopy.modpath import Modpath6, Modpath6Bas
from flopy.plot import PlotCrossSection, PlotMapView
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,12 @@ ignore = [
"F403", # unable to detect undefined names (star imports)
"F524", # `.format` missing argument(s) for placeholder(s)
"F811", # Redefinition of unused variable
"F821", # undefined name TODO FIXME
"F841", # local variable assigned but never used
]

[tool.ruff.lint.per-file-ignores]
".docs/**/*.py" = ["E501"]
"flopy/mf6/**/*.py" = ["E501", "ISC001"]
"flopy/mf6/**/*.py" = ["E501", "F821", "ISC001"]

[tool.codespell]
skip = "cliff.toml,./examples/data/*"
Expand Down
Loading