Skip to content

Commit

Permalink
Merge pull request #3270 from Unidata/dependabot-pip-ci-ruff-0.1.5
Browse files Browse the repository at this point in the history
CI: (deps): Bump ruff from 0.1.4 to 0.1.5 in /ci
  • Loading branch information
dopplershift authored Nov 13, 2023
2 parents b968b57 + 10554ae commit a821ba5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -o pipefail
ruff check . | reviewdog -f=pep8 -name=flake8 -reporter=github-check -filter-mode=nofilter
ruff check . | reviewdog -f=pep8 -name=ruff -reporter=github-check -filter-mode=nofilter
- name: Run flake8
env:
Expand Down
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.1.4
ruff==0.1.5

flake8==6.1.0
pycodestyle==2.11.1
Expand Down
4 changes: 2 additions & 2 deletions src/metpy/plots/_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def draw(self, renderer):
posy = self.convert_yunits(self.y)
pts = np.vstack((posx, posy)).T
pts = trans.transform(pts)
canvasw, canvash = renderer.get_canvas_width_height()
_, canvash = renderer.get_canvas_width_height()

gc = renderer.new_gc()
gc.set_foreground(self.get_color())
Expand All @@ -203,7 +203,7 @@ def draw(self, renderer):
continue

self._text = t # hack to allow self._get_layout to work
bbox, info, descent = self._get_layout(renderer)
_, info, _ = self._get_layout(renderer)
self._text = ''

for line, _, x, y in info:
Expand Down
3 changes: 1 addition & 2 deletions tests/calc/test_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def test_weighted_continuous_average_temperature():
data['temperature'],
height=data['height'],
depth=6000 * units('meter'))
# Commenting out since it won't run until the above can run without error
# assert_almost_equal(t, 279.3275828240889 * units('kelvin'), 7)
assert_almost_equal(t, 279.3275828240889 * units('kelvin'), 7)


def test_weighted_continuous_average_elevated():
Expand Down
3 changes: 2 additions & 1 deletion tools/nexrad_msgs/parse_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def process_msg18(fname):
if len(parts) == 8:
parts = parts[:6] + [parts[6] + parts[7]]

var_name, desc, typ, units, rng, prec, byte_range = parts
# var_name, desc, typ, units, rng, prec, byte_range
var_name, desc, typ, units, _, _, byte_range = parts
start, end = map(int, byte_range.split('-'))
size = end - start + 1
assert size >= 4
Expand Down

0 comments on commit a821ba5

Please sign in to comment.