Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Aug 8, 2019
1 parent d234a95 commit a39831f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ markers =
[flake8]
max-line-length=88
ignore=
# whitespace before ':' - doesn't work well with black
E203
E402
# do not assign a lambda expression, use a def
E731
E741
# line break before binary operator
W503
W504
# Unused imports; TODO: Allow typing to work without triggering errors
F401
exclude=
Expand Down
4 changes: 2 additions & 2 deletions xarray/tests/test_dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def test_repr_multiindex_long(self):
Coordinates:
* x (x) MultiIndex
- level_1 (x) object 'a' 'a' 'a' 'a' 'a' 'a' 'a' ... 'd' 'd' 'd' 'd' 'd' 'd'
- level_2 (x) int64 1 2 3 4 5 6 7 8 1 2 3 4 5 6 ... 4 5 6 7 8 1 2 3 4 5 6 7 8"""
) # noqa: E501
- level_2 (x) int64 1 2 3 4 5 6 7 8 1 2 3 4 5 6 ... 4 5 6 7 8 1 2 3 4 5 6 7 8""" # noqa: E501
)
assert expected == repr(mda_long)

def test_properties(self):
Expand Down
2 changes: 1 addition & 1 deletion xarray/tests/test_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_getitem_1d_fancy(self):
ind = Variable(("a", "b"), [[0, 1], [0, 1]])
v_new = v[ind]
assert v_new.dims == ("a", "b")
expected = np.array(v._data)[([0, 1], [0, 1]),]
expected = np.array(v._data)[([0, 1], [0, 1]),] # noqa
assert_array_equal(v_new, expected)

# boolean indexing
Expand Down

0 comments on commit a39831f

Please sign in to comment.