Skip to content

Commit 40c4178

Browse files
authored
Merge pull request #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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy