Skip to content

Commit d9c35ca

Browse files
committed
Add linting to YAML files
1 parent 88d64e5 commit d9c35ca

25 files changed

+388
-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: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ 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\]|\[circle skip\]|\[skip doc\]|\[doc skip\]) ]]; then
20+
if [[ -v CIRCLE_PULL_REQUEST ]] &&
21+
[[ $git_log =~ (\[skip circle\]|\[circle skip\]|\[skip doc\]|\[doc skip\]) ]]; then
2122
echo "Skip detected, exiting job ${CIRCLE_JOB} for PR ${CIRCLE_PULL_REQUEST}."
2223
circleci-agent step halt;
2324
fi
@@ -71,8 +72,12 @@ commands:
7172
name: Install custom fonts
7273
command: |
7374
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
75+
wget -nc \
76+
https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true \
77+
-O ~/.local/share/fonts/Felipa-Regular.ttf || true
78+
wget -nc \
79+
https://github.com/ipython/xkcd-font/blob/master/xkcd-script/font/xkcd-script.ttf?raw=true \
80+
-O ~/.local/share/fonts/xkcd-Script.ttf || true
7681
fc-cache -f -v
7782
- save_cache:
7883
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:

0 commit comments

Comments
 (0)