@@ -247,26 +247,26 @@ how to set up your git repository:
247
247
git clone git@github.com:YourLogin/scikit-learn.git # add --depth 1 if your connection is slow
248
248
cd scikit-learn
249
249
250
- 3 . Follow steps 2-7 in :ref: `install_bleeding_edge ` to build scikit-learn in
250
+ 4 . Follow steps 2-7 in :ref: `install_bleeding_edge ` to build scikit-learn in
251
251
development mode and return to this document.
252
252
253
- 4 . Install the development dependencies:
253
+ 5 . Install the development dependencies:
254
254
255
255
.. prompt :: bash $
256
256
257
257
pip install pytest pytest-cov flake8 mypy numpydoc black==23.3.0
258
258
259
259
.. _upstream :
260
260
261
- 5 . Add the ``upstream `` remote. This saves a reference to the main
261
+ 6 . Add the ``upstream `` remote. This saves a reference to the main
262
262
scikit-learn repository, which you can use to keep your repository
263
263
synchronized with the latest changes:
264
264
265
265
.. prompt :: bash $
266
266
267
267
git remote add upstream git@github.com:scikit-learn/scikit-learn.git
268
268
269
- 6 . Check that the `upstream ` and `origin ` remote aliases are configured correctly
269
+ 7 . Check that the `upstream ` and `origin ` remote aliases are configured correctly
270
270
by running `git remote -v ` which should display::
271
271
272
272
origin git@github.com:YourLogin/scikit-learn.git (fetch)
@@ -278,7 +278,7 @@ You should now have a working installation of scikit-learn, and your git
278
278
repository properly configured. The next steps now describe the process of
279
279
modifying code and submitting a PR:
280
280
281
- 7 . Synchronize your ``main `` branch with the ``upstream/main `` branch,
281
+ 8 . Synchronize your ``main `` branch with the ``upstream/main `` branch,
282
282
more details on `GitHub Docs <https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork >`_:
283
283
284
284
.. prompt :: bash $
@@ -287,7 +287,7 @@ modifying code and submitting a PR:
287
287
git fetch upstream
288
288
git merge upstream/main
289
289
290
- 8 . Create a feature branch to hold your development changes:
290
+ 9 . Create a feature branch to hold your development changes:
291
291
292
292
.. prompt :: bash $
293
293
@@ -296,18 +296,18 @@ modifying code and submitting a PR:
296
296
and start making changes. Always use a feature branch. It's good
297
297
practice to never work on the ``main `` branch!
298
298
299
- 9 . (**Optional **) Install `pre-commit <https://pre-commit.com/#install >`_ to
300
- run code style checks before each commit:
299
+ 10 . (**Optional **) Install `pre-commit <https://pre-commit.com/#install >`_ to
300
+ run code style checks before each commit:
301
301
302
- .. prompt :: bash $
302
+ .. prompt :: bash $
303
303
304
- pip install pre-commit
305
- pre-commit install
304
+ pip install pre-commit
305
+ pre-commit install
306
306
307
- pre-commit checks can be disabled for a particular commit with
308
- `git commit -n `.
307
+ pre-commit checks can be disabled for a particular commit with
308
+ `git commit -n `.
309
309
310
- 10 . Develop the feature on your feature branch on your computer, using Git to
310
+ 11 . Develop the feature on your feature branch on your computer, using Git to
311
311
do the version control. When you're done editing, add changed files using
312
312
``git add `` and then ``git commit ``:
313
313
@@ -323,7 +323,7 @@ modifying code and submitting a PR:
323
323
324
324
git push -u origin my_feature
325
325
326
- 11 . Follow `these
326
+ 12 . Follow `these
327
327
<https://help.github.com/articles/creating-a-pull-request-from-a-fork> `_
328
328
instructions to create a pull request from your fork. This will send an
329
329
email to the committers. You may want to consider sending an email to the
0 commit comments