Skip to content

Commit 40c4178

Browse files
authored
Merge pull request matplotlib#29944 from tacaswell/dev/ruff_blanklines
DEV: have ruff check blank-line counts
2 parents 5ff6a93 + 523937c commit 40c4178

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/matplotlib/tests/test_image.py

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ def test_imsave_python_sequences():
205205
read_img[:, :, :3] # Drop alpha if present
206206
)
207207

208+
208209
@pytest.mark.parametrize("origin", ["upper", "lower"])
209210
def test_imsave_rgba_origin(origin):
210211
# test that imsave always passes c-contiguous arrays down to pillow

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ select = [
156156
"E251",
157157
"E261",
158158
"E272",
159+
"E302",
159160
"E703",
160161
]
161162

@@ -166,7 +167,6 @@ select = [
166167
# See https://github.com/charliermarsh/ruff/issues/2402 for status on implementation
167168
external = [
168169
"E122",
169-
"E302",
170170
]
171171

172172
[tool.ruff.lint.pydocstyle]
@@ -198,7 +198,7 @@ convention = "numpy"
198198
"galleries/examples/userdemo/pgf_preamble_sgskip.py" = ["E402"]
199199

200200
"lib/matplotlib/__init__.py" = ["F822"]
201-
"lib/matplotlib/_cm.py" = ["E202", "E203"]
201+
"lib/matplotlib/_cm.py" = ["E202", "E203", "E302"]
202202
"lib/matplotlib/_mathtext.py" = ["E221"]
203203
"lib/matplotlib/_mathtext_data.py" = ["E203"]
204204
"lib/matplotlib/backends/backend_template.py" = ["F401"]

0 commit comments

Comments
 (0)