-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
STY: Apply pre-commit hooks to codebase #22809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
95038d9
787bdf0
c1a33a4
213061c
0465337
4c00377
48ade7d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# style: end-of-file-fixer pre-commit hook | ||
c1a33a481b9c2df605bcb9bef9c19fe65c3dac21 | ||
|
||
# style: trailing-whitespace pre-commit hook | ||
213061c0804530d04bbbd5c259f10dc8504e5b2b | ||
|
||
# style: check-docstring-first pre-commit hook | ||
046533797725293dfc2a6edb9f536b25f08aa636 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ contour_frontpage.png | |
histogram_frontpage.png | ||
membrane_frontpage.png | ||
surface3d_frontpage.png | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"name": "2.2", | ||
"version": "2.2.4" | ||
}, | ||
] | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ | |
.. autoclass:: CapStyle | ||
:members: demo | ||
:exclude-members: butt, round, projecting, input_description | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,3 @@ Functions | |
:template: autosummary.rst | ||
|
||
segment_hits | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,3 @@ Functions | |
|
||
bbox_artist | ||
draw_bbox | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,3 @@ | |
interval_contains, interval_contains_open | ||
:show-inheritance: | ||
:special-members: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,9 +67,18 @@ These will automatically check flake8 and other style issues when you run | |
``git commit``. The hooks are defined in the top level | ||
``.pre-commit-config.yaml`` file. To install the hooks :: | ||
|
||
pip install pre-commit | ||
python -m pip install pre-commit | ||
pre-commit install | ||
|
||
The hooks can also be run manually. All the hooks can be run, in order as | ||
listed in ``.pre-commit-config.yaml``, against the full codebase with :: | ||
|
||
pre-commit run --all-files | ||
|
||
To run a particular hook manually, run ``pre-commit run`` with the hook id :: | ||
|
||
pre-commit run <hook id> --all-files | ||
Comment on lines
+73
to
+80
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can of course target particular files with From
|
||
|
||
Installing additional dependencies for development | ||
================================================== | ||
See :ref:`development-dependencies`. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1107,4 +1107,4 @@ | |
"lib/mpl_toolkits/mplot3d/axes3d.py:docstring of mpl_toolkits.mplot3d.axes3d.Axes3D.get_ylim3d:24" | ||
] | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.. redirect-from:: /users/fonts | ||
|
||
Fonts in Matplotlib text engine | ||
=============================== | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this last rebase:
and
so these are correct. 👍
As a single line checker: