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

Skip to content

Commit 560ccff

Browse files
authored
Merge pull request #18091 from QuLogic/flake8
ci: Fix linting being ignored by reviewdog
2 parents fecfa1a + 3eb4779 commit 560ccff

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/reviewdog.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
run: |
3131
flake8 --docstring-convention=all | \
32-
reviewdog -f=pep8 -name=flake8 -reporter=github-check
32+
reviewdog -f=pep8 -name=flake8 \
33+
-tee -reporter=github-check -filter-mode nofilter
3334
3435
eslint:
3536
name: eslint
@@ -40,6 +41,7 @@ jobs:
4041
- name: eslint
4142
uses: reviewdog/action-eslint@v1
4243
with:
44+
filter_mode: nofilter
4345
github_token: ${{ secrets.GITHUB_TOKEN }}
4446
reporter: github-check
4547
workdir: 'lib/matplotlib/backends/web_backend/'

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,8 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs):
830830
"""
831831
self._check_no_units([xmin, xmax], ['xmin', 'xmax'])
832832
if "transform" in kwargs:
833-
raise ValueError("'transform' is not allowed as a keyword argument; "
834-
"axhline generates its own transform.")
833+
raise ValueError("'transform' is not allowed as a keyword "
834+
"argument; axhline generates its own transform.")
835835
ymin, ymax = self.get_ybound()
836836

837837
# We need to strip away the units for comparison with
@@ -899,8 +899,8 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
899899
"""
900900
self._check_no_units([ymin, ymax], ['ymin', 'ymax'])
901901
if "transform" in kwargs:
902-
raise ValueError("'transform' is not allowed as a keyword argument; "
903-
"axvline generates its own transform.")
902+
raise ValueError("'transform' is not allowed as a keyword "
903+
"argument; axvline generates its own transform.")
904904
xmin, xmax = self.get_xbound()
905905

906906
# We need to strip away the units for comparison with

lib/matplotlib/rcsetup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import logging
1919
from numbers import Number
2020
import operator
21-
import os
2221
import re
2322

2423
import numpy as np

0 commit comments

Comments
 (0)