Skip to content
Myr

reorganize git instructions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 2339f1f · Browse files · 1 file+33 added−23 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+33 added−23 removed

  • other:+33 added−23 removed

1 file+33 added−23 removed

modified:CONTRIBUTING.rst+33 added-23 removed
22 unmodified lines
2324Submitting patches25==================2627First time setup28----------------2928- `Make sure you have a github account <https://github.com/join>`_29- `Download and install latest version of git on your30 machine <https://git-scm.com/downloads>`_31- `Set up your username in git 32 <https://help.github.com/articles/setting-your-username-in-git/>`_33- `Set up your email in git 34 <https://help.github.com/articles/setting-your-email-in-git/>`_35- Fork flask to your github account (Click the Fork button)36- `Copy your github fork locally 37 <https://help.github.com/articles/fork-a-repo/#step-2-create-a-local-clone-of-your-fork>`_38- Create a branch to identify the issue you would like to work 39 on (eg 2287-dry-test-suite)40- Using your favorite editor, make your changes, 41 `committing as you go <http://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes>`_42- Include tests if your patch is supposed to solve a bug, and explain43 clearly under which circumstances the bug happens. Make sure the test fails44 without your patch.45- Try to follow `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_, but you46 may ignore the line-length-limit if following it would make the code uglier.47- `Run tests. 48 <https://github.com/pallets/flask/blob/master/CONTRIBUTING.rst#running-the-testsuite>`_49 When tests pass push changes to github and `create pull request 50 <https://help.github.com/articles/creating-a-pull-request/>`_30- Download and install the `latest version of git`_.31- Configure git with your `username`_ and `email`_.32- Make sure you have a `GitHub account`_.33- Fork Flask to your GitHub account by clicking the `Fork`_ button.34- `Clone`_ your GitHub fork locally.35- Add the main repository as a remote to update later.36 ``git remote add pallets https://github.com/pallets/flask``3738.. _GitHub account: https://github.com/join39.. _latest version of git: https://git-scm.com/downloads40.. _username: https://help.github.com/articles/setting-your-username-in-git/41.. _email: https://help.github.com/articles/setting-your-email-in-git/42.. _Fork: https://github.com/pallets/flask/pull/2305#fork-destination-box43.. _Clone: https://help.github.com/articles/fork-a-repo/#step-2-create-a-local-clone-of-your-fork4445Start coding46------------4748- Create a branch to identify the issue you would like to work on (e.g.49 ``2287-dry-test-suite``)50- Using your favorite editor, make your changes, `committing as you go`_.51- Try to follow `PEP8`_, but you may ignore the line length limit if following52 it would make the code uglier.53- Include tests that cover any code changes you make. Make sure the test fails54 without your patch. `Run the tests. <contributing-testsuite_>`_.55- Push your commits to GitHub and `create a pull request`_.56- Celebrate 🎉5758.. _committing as you go: http://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes59.. _PEP8: https://pep8.org/60.. _create a pull request: https://help.github.com/articles/creating-a-pull-request/6162.. _contributing-testsuite:6364Running the testsuite65---------------------6667You probably want to set up a `virtualenv
76 unmodified lines