Skip to content

Commit 4cd9d78

Browse files
MNT Fix pre-commit issues (scikit-learn#31013)
1 parent fbd3a04 commit 4cd9d78

File tree

25 files changed

+53
-66
lines changed

25 files changed

+53
-66
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
exclude: '^(.git/|sklearn/externals/|asv_benchmarks/env/)'
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
4+
rev: v5.0.0
45
hooks:
56
- id: check-yaml
67
- id: end-of-file-fixer

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ all priceless contributions.
1313

1414
We abide by the principles of openness, respect, and consideration of others of
1515
the Python Software Foundation: https://www.python.org/psf/codeofconduct/
16-

asv_benchmarks/benchmarks/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Can be overridden by environment variable SKLBENCH_PROFILE.
1010
"profile": "regular",
1111

12-
// List of values of n_jobs to use for estimators which accept this
12+
// List of values of n_jobs to use for estimators which accept this
1313
// parameter (-1 means all cores). An empty list means all values from 1 to
1414
// the maximum number of available cores.
1515
// Can be overridden by environment variable SKLBENCH_NJOBS.

doc/developers/maintainer.rst.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Reference Steps
136136
{%- if key != "rc" %}
137137
* [ ] Publish to https://github.com/scikit-learn/scikit-learn/releases
138138
{%- endif %}
139-
* [ ] Announce on mailing list and on social media platforms (LinkedIn, Bluesky, etc.)
139+
* [ ] Announce on mailing list and on social media platforms (LinkedIn, Bluesky, etc.)
140140
{%- if key != "rc" %}
141141
* [ ] Update SECURITY.md in main branch
142142
{%- endif %}

doc/logos/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ You may highlight or reference your work with scikit-learn by using one of the l
3636

3737
| | |
3838
| - | - |
39-
| <img src="1280px-scikit-learn-logo.png" height="100px"> | __Logo 1__ <br> File type: PNG <br> File size: 49 KB (1280 x 689 px) <br> File name: [1280px-scikit-learn-logo.png](https://github.com/scikit-learn/scikit-learn/blob/main/doc/logos/1280px-scikit-learn-logo.png) |
39+
| <img src="1280px-scikit-learn-logo.png" height="100px"> | __Logo 1__ <br> File type: PNG <br> File size: 49 KB (1280 x 689 px) <br> File name: [1280px-scikit-learn-logo.png](https://github.com/scikit-learn/scikit-learn/blob/main/doc/logos/1280px-scikit-learn-logo.png) |
4040
| <img src="favicon.ico" height="100px"> | __Logo 2__ <br> File type: ICO <br> File size: 2 KB (32 x 32 px) <br> File name: [favicon.ico](https://github.com/scikit-learn/scikit-learn/blob/main/doc/logos/favicon.ico) |
41-
| <img src="scikit-learn-logo-without-subtitle.svg" height="100px"> | __Logo 3__ <br> File type: SVG <br> File size: 5 KB <br> File name: [scikit-learn-logo-without-subtitle.svg](https://github.com/scikit-learn/scikit-learn/blob/main/doc/logos/scikit-learn-logo-without-subtitle.svg) |
42-
| <img src="scikit-learn-logo.svg" height="200px"> | __Logo 4__ <br> File type: SVG <br> File size: 4.59 KB <br> File name: [scikit-learn-logo.svg](https://github.com/scikit-learn/scikit-learn/blob/main/doc/logos/scikit-learn-logo.svg) |
41+
| <img src="scikit-learn-logo-without-subtitle.svg" height="100px"> | __Logo 3__ <br> File type: SVG <br> File size: 5 KB <br> File name: [scikit-learn-logo-without-subtitle.svg](https://github.com/scikit-learn/scikit-learn/blob/main/doc/logos/scikit-learn-logo-without-subtitle.svg) |
42+
| <img src="scikit-learn-logo.svg" height="200px"> | __Logo 4__ <br> File type: SVG <br> File size: 4.59 KB <br> File name: [scikit-learn-logo.svg](https://github.com/scikit-learn/scikit-learn/blob/main/doc/logos/scikit-learn-logo.svg) |
4343

4444
<br>
4545

@@ -51,8 +51,8 @@ You may highlight or reference your work with scikit-learn by using one of the l
5151

5252
- __Clear Space:__ To ensure the logo is clearly visible in all uses, surround it with a sufficient amount of clear space that is free of type, graphics, and other elements that might cause visual clutter. Do not overlap or obscure the logo with text, images, or other elements. The image below demonstrates the suggested amount of clear space margins to use around the logo. <br> <center><img src="brand_guidelines/scikitlearn_logo_clearspace_updated.png" width="250px"></center>
5353

54-
- __Colors:__ Only use logos in the approved color palette defined above. Do not recolor the logo.
55-
- __Typeface:__ Do not change the typeface used in the logo.
54+
- __Colors:__ Only use logos in the approved color palette defined above. Do not recolor the logo.
55+
- __Typeface:__ Do not change the typeface used in the logo.
5656
- __No Modification:__ Do not attempt recreate or otherwise modify the scikit-learn logo.
5757

5858

doc/modules/biclustering.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ available:
288288

289289
2. Assign biclusters from one set to another in a one-to-one fashion
290290
to maximize the sum of their similarities. This step is performed
291-
using :func:`scipy.optimize.linear_sum_assignment`, which uses a
291+
using :func:`scipy.optimize.linear_sum_assignment`, which uses a
292292
modified Jonker-Volgenant algorithm.
293293

294294
3. The final sum of similarities is divided by the size of the larger
@@ -303,4 +303,4 @@ are identical.
303303

304304
* Hochreiter, Bodenhofer, et. al., 2010. `FABIA: factor analysis
305305
for bicluster acquisition
306-
<https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2881408/>`__.
306+
<https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2881408/>`__.

doc/modules/feature_selection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ alpha parameter, the fewer features selected.
224224
noise, the smallest absolute value of non-zero coefficients, and the
225225
structure of the design matrix X. In addition, the design matrix must
226226
display certain specific properties, such as not being too correlated.
227-
On the use of Lasso for sparse signal recovery, see this example on
228-
compressive sensing:
227+
On the use of Lasso for sparse signal recovery, see this example on
228+
compressive sensing:
229229
:ref:`sphx_glr_auto_examples_applications_plot_tomography_l1_reconstruction.py`.
230230

231231
There is no general rule to select an alpha parameter for recovery of

doc/modules/svm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ used, please refer to their respective papers.
809809
Volume 14 Issue 3, August 2004, p. 199-222.
810810
811811
.. [#7] Schölkopf et. al `New Support Vector Algorithms
812-
<https://www.stat.purdue.edu/~yuzhu/stat598m3/Papers/NewSVM.pdf>`_,
812+
<https://www.stat.purdue.edu/~yuzhu/stat598m3/Papers/NewSVM.pdf>`_,
813813
Neural Computation 12, 1207-1245 (2000).
814814
815815
.. [#8] Crammer and Singer `On the Algorithmic Implementation of Multiclass

doc/testimonials/README.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ https://docs.google.com/spreadsheet/ccc?key=0AhGnAxuBDhjmdDYwNzlZVE5SMkFsMjNBbGl
55

66
To obtain access to this file, send an email to:
77
nelle dot varoquaux at gmail dot com
8-

doc/whats_new/upcoming_changes/sklearn.inspection/26202.enhancement.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
users to pass their own grid of values at which the partial dependence should be
33
calculated.
44
By :user:`Freddy A. Boulton <freddyaboulton>` and :user:`Stephen Pardy
5-
<stephenpardy>`
5+
<stephenpardy>`

0 commit comments

Comments
 (0)