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

CI: (deps): Bump ruff from 0.3.0 to 0.3.1 in /ci #3427

Merged
merged 2 commits into from
Mar 11, 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 ci/linting_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ruff==0.3.0
ruff==0.3.1

flake8==7.0.0
pycodestyle==2.11.1
Expand Down
16 changes: 8 additions & 8 deletions src/metpy/io/nexrad.py
Original file line number Diff line number Diff line change
Expand Up @@ -1848,10 +1848,10 @@ def _unpack_symblock(self, start, offset):
log.debug('Symbology block info: %s', blk)

self.sym_block = []
assert blk.divider == -1, ('Bad divider for symbology block: {:d} should be -1'
.format(blk.divider))
assert blk.block_id == 1, ('Bad block ID for symbology block: {:d} should be 1'
.format(blk.block_id))
assert blk.divider == -1, (f'Bad divider for symbology block: {blk.divider} should '
'be -1')
assert blk.block_id == 1, (f'Bad block ID for symbology block: {blk.block_id} should '
'be 1')
for _ in range(blk.nlayer):
layer_hdr = self._buffer.read_struct(self.sym_layer_fmt)
assert layer_hdr.divider == -1
Expand All @@ -1872,10 +1872,10 @@ def _unpack_symblock(self, start, offset):
def _unpack_graphblock(self, start, offset):
self._buffer.jump_to(start, offset)
hdr = self._buffer.read_struct(self.graph_block_fmt)
assert hdr.divider == -1, ('Bad divider for graphical block: {:d} should be -1'
.format(hdr.divider))
assert hdr.block_id == 2, ('Bad block ID for graphical block: {:d} should be 1'
.format(hdr.block_id))
assert hdr.divider == -1, (f'Bad divider for graphical block: {hdr.divider} should '
f'be -1')
assert hdr.block_id == 2, (f'Bad block ID for graphical block: {hdr.block_id} should '
'be 1')
self.graph_pages = []
for page in range(hdr.num_pages):
page_num = self._buffer.read_int(2, 'big', signed=False)
Expand Down