8000 DEV: have ruff check blank-line counts · matplotlib/matplotlib@523937c · GitHub
[go: up one dir, main page]

Skip to content
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 523937c

Browse files
committed
DEV: have ruff check blank-line counts
1 parent 5ff6a93 commit 523937c

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)
0