Skip to content

Commit

Permalink
Merge pull request #3146 from Unidata/dependabot-pip-ci-ruff-0.0.284
Browse files Browse the repository at this point in the history
CI: (deps): Bump ruff from 0.0.282 to 0.0.284 in /ci
  • Loading branch information
dcamron authored Aug 16, 2023
2 parents 2809552 + 4e56f48 commit fc60592
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/linting_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruff==0.0.282
ruff==0.0.284

flake8==6.1.0
pycodestyle==2.11.0
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ ignore = ["F405", "I001", "RET504", "RET505", "RET506", "RET507", "RUF100"]
"ci/filter_links.py" = ["E731", "T201", "S603", "S607"]
"docs/doc-server.py" = ["T201"]
"examples/*.py" = ["D", "T201", "B018"]
"src/metpy/_vendor/xarray.py" = ["UP032"]
"src/metpy/deprecation.py" = ["UP032"]
"src/metpy/testing.py" = ["S101"]
"src/metpy/io/nexrad.py" = ["S101"]
"tests/*/*.py" = ["S101"]
Expand Down
2 changes: 1 addition & 1 deletion src/metpy/calc/kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def potential_vorticity_baroclinic(
or np.shape(potential_temperature)[vertical_dim] != np.shape(pressure)[vertical_dim]
):
raise ValueError('Length of potential temperature along the vertical axis '
'{} must be at least 3.'.format(vertical_dim))
f'{vertical_dim} must be at least 3.')

avor = absolute_vorticity(u, v, dx, dy, latitude, x_dim=x_dim, y_dim=y_dim,
parallel_scale=parallel_scale, meridional_scale=meridional_scale)
Expand Down
2 changes: 1 addition & 1 deletion src/metpy/plots/station_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def coerce_data(dat, u):
def __repr__(self):
"""Return string representation of layout."""
return ('{'
+ ', '.join('{0}: ({1[0].name}, {1[1]}, ...)'.format(loc, info)
+ ', '.join(f'{loc}: ({info[0].name}, {info[1]}, ...)'
for loc, info in sorted(self.items()))
+ '}')

Expand Down

0 comments on commit fc60592

Please sign in to comment.