Skip to content

Commit 5f78211

Browse files
committed
ci: Fold some lines in config where possible
The `if:` expressions don't need to preserve newlines, for example.
1 parent d9c35ca commit 5f78211

File tree

6 files changed

+13
-16
lines changed

6 files changed

+13
-16
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:
1616
id: reproduction
1717
attributes:
1818
label: Code for reproduction
19-
description: |
19+
description: >-
2020
If possible, please provide a minimum self-contained example.
2121
placeholder: Paste your code here. This field is automatically formatted as Python code.
2222
render: python
@@ -26,7 +26,7 @@ body:
2626
id: actual
2727
attributes:
2828
label: Actual outcome
29-
description: |
29+
description: >-
3030
Paste the output produced by the code provided above, e.g.
3131
console output, images/videos produced by the code, any relevant screenshots/screencasts, etc.
3232
validations:

.github/ISSUE_TEMPLATE/documentation.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ body:
88
id: link
99
attributes:
1010
label: Documentation Link
11-
description: |
12-
Link to any documentation or examples that you are referencing.
13-
Suggested improvements should be based on the development version of the docs:
14-
https://matplotlib.org/devdocs/
11+
description: >-
12+
Link to any documentation or examples that you are referencing. Suggested improvements should be based
13+
on [the development version of the docs](https://matplotlib.org/devdocs/)
1514
placeholder: https://matplotlib.org/devdocs/...
1615
- type: textarea
1716
id: problem

.github/ISSUE_TEMPLATE/tag_proposal.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ labels: [Tag proposal]
66
body:
77
- type: markdown
88
attributes:
9-
value: |
10-
Please search the [tag glossary]() for relevant tags before creating a new tag proposal.
9+
value: >-
10+
Please search the [tag glossary]() for relevant tags before creating a new tag proposal.
1111
- type: textarea
1212
id: need
1313
attributes:
@@ -24,5 +24,5 @@ body:
2424
id: solution
2525
attributes:
2626
label: Proposed solution
27-
description: >
27+
description: >-
2828
What should the tag be? All tags are in the format `subcategory: tag`

.github/workflows/cibuildwheel.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323

2424
jobs:
2525
build_sdist:
26-
if: |
26+
if: >-
2727
github.event_name == 'push' ||
2828
github.event_name == 'pull_request' && (
2929
(
@@ -76,7 +76,7 @@ jobs:
7676
if-no-files-found: error
7777

7878
build_wheels:
79-
if: |
79+
if: >-
8080
github.event_name == 'push' ||
8181
github.event_name == 'pull_request' && (
8282
(

.github/workflows/cygwin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
test-cygwin:
5050
runs-on: windows-latest
5151
name: Python 3.${{ matrix.python-minor-version }} on Cygwin
52-
if: |
52+
if: >-
5353
github.event_name == 'workflow_dispatch' ||
5454
github.event_name == 'schedule' ||
5555
(

.github/workflows/tests.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030

3131
jobs:
3232
test:
33-
if: |
33+
if: >-
3434
github.event_name == 'workflow_dispatch' ||
3535
(
3636
github.repository == 'matplotlib/matplotlib' &&
@@ -278,9 +278,7 @@ jobs:
278278
279279
- name: Install the nightly dependencies
280280
# Only install the nightly dependencies during the scheduled event
281-
if: |
282-
github.event_name == 'schedule' &&
283-
matrix.name-suffix != '(Minimum Versions)'
281+
if: github.event_name == 'schedule' && matrix.name-suffix != '(Minimum Versions)'
284282
run: |
285283
python -m pip install pytz tzdata # Must be installed for Pandas.
286284
python -m pip install \

0 commit comments

Comments
 (0)