This document contains information on how to contribute to the project. Please read it before you start contributing.
- Go to the repository page
- Click on code and then copy the HTTPS or SSH link (depending on your preference)
- Open a terminal and navigate to the directory where you want to clone the repository
- Type
git clone <link>where<link>is the link you copied in step 2 - Type
cd ml-essentialsto navigate to the cloned repository
- Type
python -m venv ml-venvto create a virtual environment namedml-venv - Type
source ml-venv/bin/activatefor Linux orml-venv\Scripts\activatefor Windows to activate the virtual environment - Type
pip install -r requirements.txtto install the required packages
- Type
git checkout -b <branch-name>where<branch-name>is the name of the branch you want to create - Type
git push -u origin <branch-name>to push the branch to the remote repository
- Go to the issues page and select an issue or create a new one with the
New issuebutton - If you are creating a new issue, fill in the title
- Click on the
Assigneesbutton and select yourself if you are not already assigned to the issue - Click on the
Labelsbutton and select the appropriate label - Click on the
Projectsbutton and select the appropriate project - Click on the
Milestonebutton and select the appropriate milestone - Click the gear icon next to
Developmentand select the repository, then select the branch you created in the previous section and clickApply
- Go to
docs/and open the appropriate folder - Create a new file or edit an existing one
- Go to
mkdocs.ymland add the file to thenavsection with the appropriate title and order - Run
mkdocs serveto build the documentation and serve it locally - Go to
http://127.0.0.1:8000/to view the site
- Type
git add .to add all the files you changed orgit add <file-name>to add a specific file - Type
git commit -m "<commit-message>"where<commit-message>is a short description of the changes you made, always start with a verb in the present tense (e.g.Add documentation for theml-essentialspackage) - Fetch the latest changes from the
masterbranch by typinggit pull origin master --rebaseand resolve any conflicts if necessary - Type
git pushto push the changes to the remote repository (always push to the branch you created in the previous section and not themasterbranch. Check the output ofgit branchto see which branch you are currently on)
- Go to the pull requests page
- Click on
New pull request - Select the branch you created in the previous section as the
comparebranch - Select the
masterbranch as thebasebranch - Click on
Create pull requestand fill in the title and description - If the pull request is related to an issue, type
Closes #<issue-number>in the description where<issue-number>is the number of the issue - Assign the pull request to a reviewer
- Add the appropriate labels, projects, and milestone
- Click on
Create pull request - Wait for the reviewer to review your changes and merge the pull request
- If the pull request was merged and you want to remove the branch, go to the pull requests page view the closed pull requests and click on
Delete branchat the bottom of the page to delete the branch - To clean up your local repository, type
git checkout masterto switch to themasterbranch and then typegit branch -d <branch-name>where<branch-name>is the name of the branch you want to delete - Update your local
masterbranch by typinggit pull origin master --rebase
- Go to the pull requests page and select a pull request
- Click on
Files changedto view the changes - Check if the PR has changed/added any files in the
docs/folder and if so, check if the files have been added to thenavsection inmkdocs.yml - Check if the newly added codes follow good coding practice, for example, PEP8, avoiding redundancies. If not, point those out to be fixed.
- If you notice some code that can be rewritten to improve efficiency by a significant amount, request to make that improvement.
- Check the
Viewedbox at the bottom of the page to let the author know that you have reviewed the changes - Once you are done viewing the changes and satisfied with the changes, click on
Review changesand selectApproveto approve the changes. If you are not satisfied with the changes, write a comment and click onRequest changesto request the author to make the changes. - Please do not merge the pull request. The maintainer will merge the pull request once all the reviewers have approved the changes.
That's it! You can now start working on a new issue. If you have any questions, please contact the project maintainer.