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

Skip to content

Commit bbd3723

Browse files
committed
TYP: Move mypy options into config file
Instead of putting them in CI, so that one can run `mypy` by itself and not have to remember the flags to match CI.
1 parent f2cd6b2 commit bbd3723

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ jobs:
5555
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5656
run: |
5757
set -o pipefail
58-
mypy --config pyproject.toml lib/matplotlib \
59-
--follow-imports silent | \
58+
mypy --config pyproject.toml | \
6059
reviewdog -f=mypy -name=mypy \
6160
-tee -reporter=github-check -filter-mode nofilter
6261

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ exclude = [
232232
# stubtest will import and run, opening a figure if not excluded
233233
".*/tinypages"
234234
]
235+
files = [
236+
"lib/matplotlib",
237+
]
238+
follow_imports = "silent"
235239
warn_unreachable = true
236240

237241
[tool.rstcheck]

0 commit comments

Comments
 (0)