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

MNT: fix flake8 errors #1040

Merged
merged 3 commits into from
May 15, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/references.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ References

.. [Esterheld2008] Esterheld, J., and Giuliano, D., 2008: Discriminating between Tornadic and
Non-Tornadic Supercells: A New Hodograph Technique. *E-Journal Of Severe Storms
Meteorology*, **3(2)**, Retrieved May 10, 2018, from
http://www.ejssm.org/ojs/index.php/ejssm/article/view/33
Meteorology*, **3(2)**, Retrieved May 10, 2018.

.. [Hobbs1977] Hobbs, P. V., and J. M. Wallace, 1977: *Atmospheric Science: An
Introductory Survey*. Academic Press, 350 pp.
Expand Down
2 changes: 1 addition & 1 deletion metpy/plots/tests/test_station_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def test_layout_str():
layout.add_value('W', 'temp')
layout.add_symbol('C', 'cover', lambda x: x)
assert str(layout) == ('{C: (symbol, cover, ...), E: (text, stid, ...), '
'W: (value, temp, ...), barb: (barb, (\'u\', \'v\'), ...)}')
"W: (value, temp, ...), barb: (barb, ('u', 'v'), ...)}")


@pytest.mark.mpl_image_compare(tolerance={'1.4': 0.08}.get(MPL_VERSION, 0.00145),
Expand Down
4 changes: 2 additions & 2 deletions metpy/tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_pandas_units_simple():
assert_array_equal(res['colb'], colb_truth)


@pytest.mark.filterwarnings('ignore:Pandas doesn\'t allow columns to be created')
@pytest.mark.filterwarnings("ignore:Pandas doesn't allow columns to be created")
def test_pandas_units_on_dataframe():
"""Unit attachment based on a units attribute to a dataframe."""
df = pd.DataFrame(data=[[1, 4], [2, 5], [3, 6]], columns=['cola', 'colb'])
Expand All @@ -156,7 +156,7 @@ def test_pandas_units_on_dataframe():
assert_array_equal(res['colb'], colb_truth)


@pytest.mark.filterwarnings('ignore:Pandas doesn\'t allow columns to be created')
@pytest.mark.filterwarnings("ignore:Pandas doesn't allow columns to be created")
def test_pandas_units_on_dataframe_not_all_united():
"""Unit attachment with units attribute with a column with no units."""
df = pd.DataFrame(data=[[1, 4], [2, 5], [3, 6]], columns=['cola', 'colb'])
Expand Down
2 changes: 1 addition & 1 deletion metpy/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _axis(self, axis):
return coord_var
raise AttributeError(axis + ' attribute is not available.')
else:
raise AttributeError('\'' + axis + '\' is not an interpretable axis.')
raise AttributeError("'" + axis + "' is not an interpretable axis.")

def coordinates(self, *args):
"""Return the coordinate variables corresponding to the given axes types."""
Expand Down