8000 Merge pull request #22809 from matthewfeickert/mnt/apply-pre-commit-t… · stevezhang1999/matplotlib@f569f21 · GitHub
[go: up one dir, main page]

Skip to content

Commit f569f21

Browse files
authored
Merge pull request matplotlib#22809 from matthewfeickert/mnt/apply-pre-commit-to-all-files
STY: Apply pre-commit hooks to codebase
2 parents 02e123a + 48ade7d commit f569f21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+123
-123
lines changed

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# style: end-of-file-fixer pre-commit hook
2+
c1a33a481b9c2df605bcb9bef9c19fe65c3dac21
3+
4+
# style: trailing-whitespace pre-commit hook
5+
213061c0804530d04bbbd5c259f10dc8504e5b2b
6+
7+
# style: check-docstring-first pre-commit hook
8+
046533797725293dfc2a6edb9f536b25f08aa636

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ body:
66
id: summary
77
attributes:
88
label: Bug summary
9-
description: Describe the bug in 1-2 short sentences
10-
placeholder:
9+
description: Describe the bug in 1-2 short sentences
10+
placeholder:
1111
value:
1212
validations:
1313
required: true
1414
- type: textarea
1515
id: reproduction
1616
attributes:
1717
label: Code for reproduction
18-
description: If possible, please provide a minimum self-contained example.
18+
description: If possible, please provide a minimum self-contained example.
1919
placeholder: Paste your code here
2020
render: python
2121
validations:
@@ -59,7 +59,7 @@ body:
5959
required: true
6060
- type: input
6161
id: matplotlib-backend
62-
attributes:
62+
attributes:
6363
label: Matplotlib Backend
6464
description: "From Python prompt: `import matplotlib; print(matplotlib.get_backend())`"
6565
- type: input

.github/ISSUE_TEMPLATE/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
id: problem
1616
attributes:
1717
label: Problem
18-
description: What is missing, unclear, or wrong in the documentation?
18+
description: What is missing, unclear, or wrong in the documentation?
1919
placeholder: |
2020
* I found [...] to be unclear because [...]
2121
* [...] made me think that [...] when really it should be [...]

.github/ISSUE_TEMPLATE/maintenance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ body:
77
id: summary
88
attributes:
99
label: Summary
10-
description: Please provide 1-2 short sentences that succinctly describes what could be improved.
10+
description: Please provide 1-2 short sentences that succinctly describes what could be improved.
1111
validations:
1212
required: true
1313
- type: textarea
1414
id: fix
1515
attributes:
1616
label: Proposed fix
17-
description: Please describe how you think this could be improved.
17+
description: Please describe how you think this could be improved.

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,4 +305,4 @@ jobs:
305305
pinned: false
306306
close-previous: false
307307
env:
308-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
308+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ci:
44
exclude: |
55
(?x)^(
66
extern|
7+
LICENSE|
78
lib/matplotlib/mpl-data|
89
doc/devel/gitwash|
910
doc/users/prev|
@@ -12,7 +13,7 @@ exclude: |
1213
)
1314
repos:
1415
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.0.1
16+
rev: v4.2.0
1617
hooks:
1718
- id: check-added-large-files
1819
- id: check-docstring-first
@@ -22,7 +23,7 @@ repos:
2223
- id: trailing-whitespace
2324
exclude_types: [svg]
2425
- repo: https://github.com/pycqa/flake8
25-
rev: 3.9.2
26+
rev: 4.0.1
2627
hooks:
2728
- id: flake8
2829
additional_dependencies: [pydocstyle>5.1.0, flake8-docstrings>1.4.0]

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ representative at an online or offline event.
6262
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6363
reported to the community leaders responsible for enforcement at
6464
matplotlib@numfocus.org (monitored by Thomas Caswell (\@tacaswell) and Hannah
65-
Aizenman (\@story645)) or a report can be made using the [NumFOCUS Code of Conduct report form][numfocus form].
65+
Aizenman (\@story645)) or a report can be made using the [NumFOCUS Code of Conduct report form][numfocus form].
6666
If community leaders cannot come to a resolution about enforcement, reports will be escalated to the NumFocus Code of Conduct committee (conduct@numfocus.org).
6767
All complaints will be reviewed and investigated promptly and fairly.
6868

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,3 @@ For more information, please visit `the informational page
116116
<https://sustainable-open-science-and-software.github.io/>`__ or download the
117117
`participant information sheet
118118
<https://sustainable-open-science-and-software.github.io/assets/PIS_sustainable_software.pdf>`__.
119-

doc/README.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ This is the top level build directory for the Matplotlib
1313
documentation. All of the documentation is written using sphinx, a
1414
python documentation system built on top of ReST. This directory contains
1515

16-
* users - the user documentation, e.g., installation, plotting tutorials,
16+
* users - the user documentation, e.g., installation, plotting tutorials,
1717
configuration tips, faq, explaations, etc.
1818

1919
* devel - documentation for Matplotlib developers
2020

2121
* api - placeholders to automatically generate the api documentation
2222

23-
* tutorials, plot_types, and gallery - automatically
23+
* tutorials, plot_types, and gallery - automatically
2424
generated by sphinx-gallery from ``../tutorials``, ``../plot_types``, and
2525
``../examples`` respectively (these are only present if docs have been
26-
built locally).
26+
built locally).
2727

2828
* thirdpartypackages - redirect to <https://matplotlib.org/mpl-third-party/>
2929

doc/_static/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ contour_frontpage.png
22
histogram_frontpage.png
33
membrane_frontpage.png
44
surface3d_frontpage.png
5-

0 commit comments

Comments
 (0)
0