- Go to this repo: https://github.com/longr/git-advance-example/
- To raise an issue:
- Click on
Issues
just under the repository name. - Click on
New Issue
, it is green button on the right. - Select one of the 3 template issues by clicking
Get Started
next to them. - Edit the title to add your github username to the end so the title is similar to:
[FEATURE] Add division function USERNAME
- Click
Submit new issue
- Click on
- To assign the issue to someone:
- Click on the issue.
- On the right it says
Asssignees
. Click on the cog symbol next to this. - Type the username of the person you wish to assign the issue to in the box.
- Click on the desired username in the box that appears (a tick should appear once you click on them)
- Once assignee has submitted PR, and tests have finished comment on the issue.
- Once tests pass, approve PR citing issue number in comment.
- Go to this repo: https://github.com/longr/git-advance-example/
- Fork repo:
2. Click on
Fork
near the top right to fork the repository 2. If it asks "Where should we fork" click on your username - Clone repository to local machine:
- Go to the repository, it shoudl be https://github.com/YOUR_USERNAME/git-advance-example/
- Click on green
Code
button. - Select SSH.
- Click on copy button.
- On your computer, in a terminal type:
git clone <line copied from github>
- Move (
cd
) into the newly created directory.
- Follow instructions in issue your are tagged in to fix the code.
- Use git to
add
,commit
, andpush
the code. - Create pull request:
- Go to your forked repository in GitHub.
- Click on
Contribute
button. - Click on "Open Pull Request". Type a meaning full comment. You can include keywords such as "resolves #issue-number-you-were-assigned in the title or description to link to your issue.
- Wait for tests to run.
- Wait for feedback from Assigner and fix code.
- On your local machine make the changes needed to the code.
- Using git,
add
,commit
, andpush
- This will update the PR
- Once PR has been accepted, delete branch from your fork. `git branch -d
- On your machine, swap to main branch and add upstream repo
git remote add upstream [email protected]:longr/git-advance-example.git
- Fetch updated main on upstream
git pull upstream main
- Push changes to your fork
git push origin main
Basic calculator functions in python
Make sure you have conda or miniconda installed.
conda create --name python-calculator python=3.8
conda activate python-calculator
python -m pip install -r requirements.txt
Make sure you have activated your conda environment.
conda activate python-calculator
Then run:
pip install .
Make sure you have activated your conda environment. Then run:
python -m pytest