Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40c4178

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

File tree

Expand file treeCollapse file tree

2 files changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-2
lines changed

‎lib/matplotlib/tests/test_image.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_image.py
+1Lines 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

Copy file name to clipboardExpand all lines: pyproject.toml
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.