Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix imshow to support array alpha values and add corresponding test #142

Fix imshow to support array alpha values and add corresponding test

Fix imshow to support array alpha values and add corresponding test #142

Triggered via pull request August 8, 2025 08:43
Status Failure
Total duration 1m 38s
Artifacts

linting.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 7 warnings
ruff
Process completed with exit code 1.
precommit
Process completed with exit code 1.
ruff: lib/matplotlib/tests/test_axes/test_imshow_alpha_array.py#L4
[rdjson] reported by reviewdog 🐶 Expected 2 blank lines, found 1 Raw Output: message:"Expected 2 blank lines, found 1" location:{path:"/home/runner/work/matplotlib/matplotlib/lib/matplotlib/tests/test_axes/test_imshow_alpha_array.py" range:{start:{line:4 column:1} end:{line:4 column:4}}} severity:WARNING source:{name:"ruff" url:"https://docs.astral.sh/ruff"} code:{value:"E302" url:"https://docs.astral.sh/ruff/rules/blank-lines-top-level"} suggestions:{range:{start:{line:3 column:1} end:{line:4 column:1}} text:"\n\n"}
ruff: lib/matplotlib/image.py#L1588
[rdjson] reported by reviewdog 🐶 Docstring is under-indented Raw Output: message:"Docstring is under-indented" location:{path:"/home/runner/work/matplotlib/matplotlib/lib/matplotlib/image.py" range:{start:{line:1588 column:1} end:{line:1588 column:1}}} severity:WARNING source:{name:"ruff" url:"https://docs.astral.sh/ruff"} code:{value:"D207" url:"https://docs.astral.sh/ruff/rules/under-indentation"} suggestions:{range:{start:{line:1588 column:1} end:{line:1588 column:4}} text:" "}
ruff: lib/matplotlib/image.py#L1587
[rdjson] reported by reviewdog 🐶 Trailing whitespace Raw Output: message:"Trailing whitespace" location:{path:"/home/runner/work/matplotlib/matplotlib/lib/matplotlib/image.py" range:{start:{line:1587 column:87} end:{line:1587 column:88}}} severity:WARNING source:{name:"ruff" url:"https://docs.astral.sh/ruff"} code:{value:"W291" url:"https://docs.astral.sh/ruff/rules/trailing-whitespace"} suggestions:{range:{start:{line:1587 column:87} end:{line:1587 column:88}}}
ruff: lib/matplotlib/image.py#L1587
[rdjson] reported by reviewdog 🐶 Docstring is under-indented Raw Output: message:"Docstring is under-indented" location:{path:"/home/runner/work/matplotlib/matplotlib/lib/matplotlib/image.py" range:{start:{line:1587 column:1} end:{line:1587 column:1}}} severity:WARNING source:{name:"ruff" url:"https://docs.astral.sh/ruff"} code:{value:"D207" url:"https://docs.astral.sh/ruff/rules/under-indentation"} suggestions:{range:{start:{line:1587 column:1} end:{line:1587 column:4}} text:" "}
ruff: lib/matplotlib/image.py#L1586
[rdjson] reported by reviewdog 🐶 Trailing whitespace Raw Output: message:"Trailing whitespace" location:{path:"/home/runner/work/matplotlib/matplotlib/lib/matplotlib/image.py" range:{start:{line:1586 column:89} end:{line:1586 column:90}}} severity:WARNING source:{name:"ruff" url:"https://docs.astral.sh/ruff"} code:{value:"W291" url:"https://docs.astral.sh/ruff/rules/trailing-whitespace"} suggestions:{range:{start:{line:1586 column:89} end:{line:1586 column:90}}}
ruff: lib/matplotlib/image.py#L1586
[rdjson] reported by reviewdog 🐶 Line too long (89 > 88) Raw Output: message:"Line too long (89 > 88)" location:{path:"/home/runner/work/matplotlib/matplotlib/lib/matplotlib/image.py" range:{start:{line:1586 column:89} end:{line:1586 column:90}}} severity:WARNING source:{name:"ruff" url:"https://docs.astral.sh/ruff"} code:{value:"E501" url:"https://docs.astral.sh/ruff/rules/line-too-long"}
ruff: lib/matplotlib/image.py#L1586
[rdjson] reported by reviewdog 🐶 Docstring is under-indented Raw Output: message:"Docstring is under-indented" location:{path:"/home/runner/work/matplotlib/matplotlib/lib/matplotlib/image.py" range:{start:{line:1586 column:1} end:{line:1586 column:1}}} severity:WARNING source:{name:"ruff" url:"https://docs.astral.sh/ruff"} code:{value:"D207" url:"https://docs.astral.sh/ruff/rules/under-indentation"} suggestions:{range:{start:{line:1586 column:1} end:{line:1586 column:4}} text:" "}