8000 DOC update list numbers in contributing doc (#26360) · scikit-learn/scikit-learn@d0b383e · GitHub
[go: up one dir, main page]

Skip to content

Commit d0b383e

Browse files
DOC update list numbers in contributing doc (#26360)
1 parent 72a6049 commit d0b383e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

doc/developers/contributing.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -247,26 +247,26 @@ how to set up your git repository:
247247
git clone git@github.com:YourLogin/scikit-learn.git # add --depth 1 if your connection is slow
248248
cd scikit-learn
249249

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
251251
development mode and return to this document.
252252

253-
4. Install the development dependencies:
253+
5. Install the development dependencies:
254254

255255
.. prompt:: bash $
256256

257257
pip install pytest pytest-cov flake8 mypy numpydoc black==23.3.0
258258

259259
.. _upstream:
260260

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
262262
scikit-learn repository, which you can use to keep your repository
263263
synchronized with the latest changes:
264264

265265
.. prompt:: bash $
266266

267267
git remote add upstream git@github.com:scikit-learn/scikit-learn.git
268268

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
270270
by running `git remote -v` which should display::
271271

272272
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
278278
repository properly configured. The next steps now describe the process of
279279
modifying code and submitting a PR:
280280

281-
7. Synchronize your ``main`` branch with the ``upstream/main`` branch,
281+
8. Synchronize your ``main`` branch with the ``upstream/main`` branch,
282282
more details on `GitHub Docs <https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork>`_:
283283

284284
.. prompt:: bash $
@@ -287,7 +287,7 @@ modifying code and submitting a PR:
287287
git fetch upstream
288288
git merge upstream/main
289289

290-
8. Create a feature branch to hold your development changes:
290+
9. Create a feature branch to hold your development changes:
291291

292292
.. prompt:: bash $
293293

@@ -296,18 +296,18 @@ modifying code and submitting a PR:
296296
and start making changes. Always use a feature branch. It's good
297297
practice to never work on the ``main`` branch!
298298

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:
301301

302-
.. prompt:: bash $
302+
.. prompt:: bash $
303303

304-
pip install pre-commit
305-
pre-commit install
304+
pip install pre-commit
305+
pre-commit install
306306

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`.
309309

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
311311
do the version control. When you're done editing, add changed files using
312312
``git add`` and then ``git commit``:
313313

@@ -323,7 +323,7 @@ modifying code and submitting a PR:
323323

324324
git push -u origin my_feature
325325

326-
11. Follow `these
326+
12. Follow `these
327327
<https://help.github.com/articles/creating-a-pull-request-from-a-fork>`_
328328
instructions to create a pull request from your fork. This will send an
329329
email to the committers. You may want to consider sending an email to the

0 commit comments

Comments
 (0)
0