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

Skip to content

Commit fb5109b

Browse files
committed
Add linting to YAML files
1 parent daa98a1 commit fb5109b

25 files changed

+389
-322
lines changed

.appveyor.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
33
# https://packaging.python.org/en/latest/appveyor/
44
# https://github.com/rmcgibbo/python-appveyor-conda-example
5+
---
56

67
# Backslashes in quotes need to be escaped: \ -> "\\"
78
branches:
@@ -38,7 +39,7 @@ environment:
3839
# We always use a 64-bit machine, but can build x86 distributions
3940
# with the PYTHON_ARCH variable
4041
platform:
41-
- x64
42+
- x64
4243

4344
# all our python builds have to happen in tests_script...
4445
build: false
@@ -79,10 +80,13 @@ test_script:
7980
- if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex
8081
# missing packages on conda-forge for imagemagick
8182
# This install sometimes failed randomly :-(
82-
#- choco install imagemagick
83+
# - choco install imagemagick
8384

8485
# Test import of tkagg backend
85-
- python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
86+
- python -c
87+
"import matplotlib as m; m.use('tkagg');
88+
import matplotlib.pyplot as plt;
89+
print(plt.get_backend())"
8690
# tests
8791
- echo The following args are passed to pytest %PYTEST_ARGS%
8892
- pytest %PYTEST_ARGS%

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ commands:
1717
export git_log=$(git log --max-count=1 --pretty=format:"%B" | tr "\n" " ")
1818
echo "Got commit message:"
1919
echo "${git_log}"
20-
if [[ -v CIRCLE_PULL_REQUEST ]] && ([[ "$git_log" == *"[skip circle]"* ]] || [[ "$git_log" == *"[circle skip]"* ]]); then
20+
if [[ -v CIRCLE_PULL_REQUEST ]] && \
21+
([[ "$git_log" == *"[skip circle]"* ]] || \
22+
[[ "$git_log" == *"[circle skip]"* ]]); then
2123
echo "Skip detected, exiting job ${CIRCLE_JOB} for PR ${CIRCLE_PULL_REQUEST}."
2224
circleci-agent step halt;
2325
fi
@@ -71,8 +73,12 @@ commands:
7173
name: Install custom fonts
7274
command: |
7375
mkdir -p ~/.local/share/fonts
74-
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
75-
wget -nc https://github.com/ipython/xkcd-font/blob/master/xkcd-script/font/xkcd-script.ttf?raw=true -O ~/.local/share/fonts/xkcd-Script.ttf || true
76+
wget -nc \
77+
https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true \
78+
-O ~/.local/share/fonts/Felipa-Regular.ttf || true
79+
wget -nc \
80+
https://github.com/ipython/xkcd-font/blob/master/xkcd-script/font/xkcd-script.ttf?raw=true \
81+
-O ~/.local/share/fonts/xkcd-Script.ttf || true
7682
fc-cache -f -v
7783
- save_cache:
7884
key: fonts-4

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# These are supported funding model platforms
23
github: [matplotlib, numfocus]
34
custom: https://numfocus.org/donate-to-matplotlib

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Bug Report
23
description: Report a bug or issue with Matplotlib.
34
title: "[Bug]: "
@@ -6,7 +7,7 @@ body:
67
id: summary
78
attributes:
89
label: Bug summary
9-
description: Describe the bug in 1-2 short sentences
10+
description: Describe the bug in 1-2 short sentences
1011
placeholder:
1112
value:
1213
validations:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
2-
blank_issues_enabled: true # default
1+
# Reference:
2+
# https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
3+
---
4+
blank_issues_enabled: true # default
35
contact_links:
46
- name: Question/Support/Other
57
url: https://discourse.matplotlib.org

.github/ISSUE_TEMPLATE/documentation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Documentation
23
description: Create a report to help us improve the documentation
34
title: "[Doc]: "
@@ -9,7 +10,8 @@ body:
910
label: Documentation Link
1011
description: |
1112
Link to any documentation or examples that you are referencing.
12-
Suggested improvements should be based on the development version of the docs: https://matplotlib.org/devdocs/
13+
Suggested improvements should be based on the development version of the docs:
14+
https://matplotlib.org/devdocs/
1315
placeholder: https://matplotlib.org/devdocs/...
1416
- type: textarea
1517
id: problem

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
---
12
name: Feature Request
23
description: Suggest something to add to Matplotlib!
34
title: "[ENH]: "
45
labels: [New feature]
56
body:
67
- type: markdown
78
attributes:
8-
value: |
9-
Please search the [issues](https://github.com/matplotlib/matplotlib/issues) for relevant feature requests before creating a new feature request.
9+
value: >-
10+
Please search the [issues](https://github.com/matplotlib/matplotlib/issues) for relevant feature
11+
requests before creating a new feature request.
1012
- type: textarea
1113
id: problem
1214
attributes:

.github/ISSUE_TEMPLATE/maintenance.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Maintenance
23
description: Help improve performance, usability and/or consistency.
34
title: "[MNT]: "
@@ -7,7 +8,7 @@ body:
78
id: summary
89
attributes:
910
label: Summary
10-
description: Please provide 1-2 short sentences that succinctly describes what could be improved.
11+
description: Please provide 1-2 short sentences that succinctly describes what could be improved.
1112
validations:
1213
required: true
1314
- type: textarea

.github/ISSUE_TEMPLATE/tag_proposal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Tag Proposal
23
description: Suggest a new tag or subcategory for the gallery of examples
34
title: "[Tag]: "

.github/codecov.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# codecov used to be able to find this anywhere, now we have to manually
22
# tell it where to look
3+
---
34
comment: false
45

56
codecov:
67
notify:
7-
require_ci_to_pass: no
8+
require_ci_to_pass: false
89

910
coverage:
1011
status:

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: 2
23
updates:
34
- package-ecosystem: "github-actions"

.github/labeler.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@
7676

7777
"Documentation: API":
7878
- all:
79-
- changed-files:
80-
- any-glob-to-any-file:
81-
# Also files in lib/**, but we can't be sure those are only documentation.
82-
- 'doc/api/**'
83-
- all-globs-to-all-files:
84-
- '!doc/api/next_api_changes/**'
79+
- changed-files:
80+
- any-glob-to-any-file:
81+
# Also files in lib/**, but we can't be sure those are only documentation.
82+
- 'doc/api/**'
83+
- all-globs-to-all-files:
84+
- '!doc/api/next_api_changes/**'
8585

8686
"Documentation: build":
8787
- changed-files:
@@ -107,12 +107,12 @@
107107
- 'galleries/tutorials/**'
108108
"Documentation: user guide":
109109
- all:
110-
- changed-files:
111-
- any-glob-to-any-file:
112-
- 'doc/users/**'
113-
- 'galleries/users_explain/**'
114-
- all-globs-to-all-files:
115-
- '!doc/users/next_whats_new/**'
110+
- changed-files:
111+
- any-glob-to-any-file:
112+
- 'doc/users/**'
113+
- 'galleries/users_explain/**'
114+
- all-globs-to-all-files:
115+
- '!doc/users/next_whats_new/**'
116116

117117
"topic: animation":
118118
- changed-files:

.github/workflows/cibuildwheel.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ jobs:
101101
# If using all `--pre` releases creates issues, the NumPy wheel can be
102102
# installed more targeted.
103103
CIBW_BUILD_FRONTEND: >-
104-
${{ (((github.event_name == 'push' && github.ref == 'refs/heads/main') ||
104+
${{ ((github.event_name == 'push' && github.ref == 'refs/heads/main') ||
105105
(github.event_name == 'pull_request' && github.base_ref == 'main')) &&
106-
'pip; args: --pre --extra-index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"') ||
106+
'pip; args: --pre
107+
--extra-index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"' ||
107108
'build' }}
108109
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
109110
delvewheel repair -w {dest_dir} {wheel}
@@ -146,39 +147,39 @@ jobs:
146147
path: dist/
147148

148149
- name: Build wheels for CPython 3.12
149-
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
150+
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
150151
with:
151152
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
152153
env:
153154
CIBW_BUILD: "cp312-*"
154155
CIBW_ARCHS: ${{ matrix.cibw_archs }}
155156

156157
- name: Build wheels for CPython 3.11
157-
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
158+
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
158159
with:
159160
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
160161
env:
161162
CIBW_BUILD: "cp311-*"
162163
CIBW_ARCHS: ${{ matrix.cibw_archs }}
163164

164165
- name: Build wheels for CPython 3.10
165-
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
166+
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
166167
with:
167168
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
168169
env:
169170
CIBW_BUILD: "cp310-*"
170171
CIBW_ARCHS: ${{ matrix.cibw_archs }}
171172

172173
- name: Build wheels for CPython 3.9
173-
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
174+
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
174175
with:
175176
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
176177
env:
177178
CIBW_BUILD: "cp39-*"
178179
CIBW_ARCHS: ${{ matrix.cibw_archs }}
179180

180181
- name: Build wheels for PyPy
181-
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
182+
uses: pypa/cibuildwheel@fff9ec32ed25a9c576750c91e06b410ed0c15db7 # v2.16.2
182183
with:
183184
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
184185
env:
@@ -212,4 +213,4 @@ jobs:
212213
run: ls dist
213214

214215
- name: Publish package distributions to PyPI
215-
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf # v1.8.11
216+
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf # v1.8.11

.github/workflows/clean_pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ jobs:
4848
- name: Check for branches opened against main
4949
if: github.ref_name == 'main'
5050
run: |
51-
printf 'PR branch should not be main. See https://matplotlib.org/devdocs/devel/development_workflow.html#make-a-new-feature-branch'
51+
echo 'PR branch should not be main.'
52+
echo 'See https://matplotlib.org/devdocs/devel/development_workflow.html#make-a-new-feature-branch'
5253
exit 1

.github/workflows/cygwin.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ jobs:
118118
# GitHub Actions runs everything as Administrator. I don't
119119
# know how to test for this, so set the uid for the CI job so
120120
# that the existing unix root detection will work.
121-
run: |
122-
/bin/mkpasswd.exe -c | sed -e "s/$(id -u)/0/" >/etc/passwd
121+
run: /bin/mkpasswd.exe -c | sed -e "s/$(id -u)/0/" >/etc/passwd
123122

124123
- name: Mark test repo safe
125124
shell: bash.exe -eo pipefail -o igncr "{0}"
@@ -143,8 +142,7 @@ jobs:
143142
with:
144143
path: C:\cygwin\home\runneradmin\.cache\pip
145144
key: Cygwin-py3.${{ matrix.python-minor-version }}-pip-${{ hashFiles('requirements/*/*.txt') }}
146-
restore-keys: |
147-
${{ matrix.os }}-py3.${{ matrix.python-minor-version }}-pip-
145+
restore-keys: ${{ matrix.os }}-py3.${{ matrix.python-minor-version }}-pip-
148146

149147
- name: Cache ccache
150148
uses: actions/cache@v4
@@ -215,7 +213,8 @@ jobs:
215213
- name: Find DLLs to rebase
216214
shell: bash.exe -eo pipefail -o igncr "{0}"
217215
run: |
218-
find {/usr,/usr/local}/{bin,lib/python3.*/site-packages} /usr/lib/lapack . -name \*.exe -o -name \*.dll -print >files_to_rebase.txt
216+
find {/usr,/usr/local}/{bin,lib/python3.*/site-packages} /usr/lib/lapack . \
217+
-name \*.exe -o -name \*.dll -print >files_to_rebase.txt
219218
220219
- name: Rebase DLL list
221220
shell: ash.exe "{0}"
@@ -236,7 +235,9 @@ jobs:
236235
oldmplrc=$(python -c "from matplotlib import matplotlib_fname as mplrc_file; print(mplrc_file())")
237236
echo "${oldmplrc}"
238237
mkdir -p ~/.matplotlib/
239-
sed -E -e 's~#animation\.ffmpeg_path:.+~animation.ffmpeg_path: /usr/bin/ffmpeg.exe~' "${oldmplrc}" >~/.matplotlib/matplotlibrc
238+
sed -E \
239+
-e 's~#animation\.ffmpeg_path:.+~animation.ffmpeg_path: /usr/bin/ffmpeg.exe~' \
240+
"${oldmplrc}" >~/.matplotlib/matplotlibrc
240241
241242
- name: Run pytest
242243
shell: bash.exe -eo pipefail -o igncr "{0}"

.github/workflows/good-first-issue.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Add comment on good first issues
23
on:
34
issues:
@@ -17,8 +18,13 @@ jobs:
1718
body: |
1819
### Good first issue - notes for new contributors
1920
20-
This issue is suited to new contributors because it does not require understanding of the Matplotlib internals. To get started, please see our [contributing guide](https://matplotlib.org/stable/devel/index).
21+
This issue is suited to new contributors because it does not require understanding of the
22+
Matplotlib internals. To get started, please see our [contributing
23+
guide](https://matplotlib.org/stable/devel/index).
2124
22-
**We do not assign issues**. Check the *Development* section in the sidebar for linked pull requests (PRs). If there are none, feel free to start working on it. If there is an open PR, please collaborate on the work by reviewing it rather than duplicating it in a competing PR.
25+
**We do not assign issues**. Check the *Development* section in the sidebar for linked pull
26+
requests (PRs). If there are none, feel free to start working on it. If there is an open PR, please
27+
collaborate on the work by reviewing it rather than duplicating it in a competing PR.
2328
24-
If something is unclear, please reach out on any of our [communication channels](https://matplotlib.org/stable/devel/contributing.html#get-connected).
29+
If something is unclear, please reach out on any of our [communication
30+
channels](https://matplotlib.org/stable/devel/contributing.html#get-connected).

.github/workflows/nightlies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
ls -l dist/
6060
6161
- name: Upload wheels to Anaconda Cloud as nightlies
62-
uses: scientific-python/upload-nightly-action@5fb764c5bce1ac2297084c0f7161b1919f17c74f # 0.2.0
62+
uses: scientific-python/upload-nightly-action@5fb764c5bce1ac2297084c0f7161b1919f17c74f # 0.2.0
6363
with:
6464
artifacts_path: dist
6565
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}

.github/workflows/stale-tidy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: 'Close inactive issues'
23
on:
34
schedule:

.github/workflows/stale.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: 'Label inactive PRs'
23
on:
34
schedule:
@@ -12,11 +13,22 @@ jobs:
1213
with:
1314
repo-token: ${{ secrets.GITHUB_TOKEN }}
1415
operations-per-run: 20
15-
stale-pr-message: 'Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you need a review or guidance to move the PR forward! If you do not plan on continuing the work, please let us know so that we can either find someone to take the PR over, or close it.'
16+
stale-pr-message: >-
17+
Since this Pull Request has not been updated in 60 days, it has been marked "inactive." This does
18+
not mean that it will be closed, though it may be moved to a "Draft" state. This helps maintainers
19+
prioritize their reviewing efforts. You can pick the PR back up anytime - please ping us if you
20+
need a review or guidance to move the PR forward! If you do not plan on continuing the work, please
21+
let us know so that we can either find someone to take the PR over, or close it.
1622
stale-pr-label: "status: inactive"
1723
days-before-pr-stale: 60
1824
days-before-pr-close: -1
19-
stale-issue-message: 'This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!'
25+
stale-issue-message: >-
26+
This issue has been marked "inactive" because it has been 365 days since the last comment. If this
27+
issue is still present in recent Matplotlib releases, or the feature request is still wanted,
28+
please leave a comment and this label will be removed. If there are no updates in another 30 days,
29+
this issue will be automatically closed, but you are free to re-open or create a new issue if
30+
needed. We value issue reports, and this procedure is meant to help us resurface and prioritize
31+
issues that have not been addressed yet, not make them disappear. Thanks for your help!
2032
stale-issue-label: "status: inactive"
2133
close-issue-label: "status: closed as inactive"
2234
days-before-issue-stale: 365

.meeseeksdev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
users:
23
Carreau:
34
can:

0 commit comments

Comments
 (0)