Skip to content

Commit

Permalink
MNT: Clean up some flake8 whitespace issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Oct 30, 2024
1 parent 6bc8fd0 commit 5bab7bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/ncss/NCSS_Cartopy_Example.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
plt.colorbar(cf, ax=ax, fraction=0.032)

# Make a title with the time value
ax.set_title(f'Temperature forecast (\u00b0F) for {time_val:%d %B %Y %H:%MZ}',
ax.set_title(f'Temperature forecast (\u00b0F) for {time_val: %d %B %Y %H:%MZ}',

Check failure on line 114 in examples/ncss/NCSS_Cartopy_Example.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] examples/ncss/NCSS_Cartopy_Example.py#L114

E231 missing whitespace after ':'
Raw output
./examples/ncss/NCSS_Cartopy_Example.py:114:73: E231 missing whitespace after ':'
fontsize=20)

# Plot markers for each lat/long to show grid points for 0.25 deg GFS
Expand Down
2 changes: 1 addition & 1 deletion src/siphon/cdmr/ncstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def read_messages(fobj, magic_table):
if func is not None:
messages.append(func(fobj))
else:
log.error('Unknown magic: ' + str(' '.join(f'{b:02x}'
log.error('Unknown magic: ' + str(' '.join(f'{b: 02x}'
for b in bytearray(magic))))

return messages
Expand Down
2 changes: 1 addition & 1 deletion src/siphon/http_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def get(self, path, params=None):
else:
text = resp.text
raise requests.HTTPError(f'Error accessing {resp.request.url}\n'
f'Server Error ({resp.status_code:d}: {text})')
f'Server Error ({resp.status_code: d}: {text})')
return resp

def _get_metadata(self):
Expand Down
2 changes: 1 addition & 1 deletion src/siphon/simplewebservice/iastate.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _get_data_raw(self, time, site_id, pressure=None):
if not (json_data['profiles'] and json_data['profiles'][0]['profile']):
message = 'No data available '
if time is not None:
message += f'for {time:%Y-%m-%d %HZ} '
message += f'for {time: %Y-%m-%d %HZ} '
if site_id is not None:
message += f'for station {site_id}'
if pressure is not None:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,4 +407,4 @@ def test_nasa_hyrax_dataset():

# Checks #gh-759
assert len(cat.datasets) == 161
assert 'epic_1b_20240413222222_03.h5' in cat.datasets
assert 'epic_1b_20240413222222_03.h5' in cat.datasets

0 comments on commit 5bab7bc

Please sign in to comment.