Guideline how to implement solution for Python tasks
Prepare the project
- Fork the repo (GitHub repository)
- Clone the forked repo
- You can get the link by clicking the
Clone or downloadbutton in your repo - Open the project folder in your IDE
- Open a terminal in the project folder
- Create a branch for the solution and switch on it
- You can use any other name instead of
develop - If you are using PyCharm - it may propose you to automatically create venv for your project and install requirements in it, but if not:
python -m venv venv
venv\Scripts\activate (on Windows)
source venv/bin/activate (on macOS)
pip install -r requirements.txt
Implement the solution
- Implement the solution within a function in
app/main.py
2. Run pytest to check if your solution is correct (from command line, or using PyCharm pytest support)
- If at least one test fails fix the solution and check again.
-
Run
flake8to see if your code follows the flake8 rules -
If you see some errors fix them and check again
- Save the solution
- If you created another branch (not
develop) use its name instead
Create a Pull Request (PR)
- Open your repo on GitHub and create a
Pull Request(PR)
2. Select your branch in the dropdown!
3. Verify the PR details and code (scroll down to see it) and confirm

If a mentor requested changes on your PR
- Repeat Implement the solution section
- PR is updated automatically after a push to your branch on GitHub
After updating your PR - click on re-request button at PR page IF YOU NEED ADDITIONAL REVIEW OF YOUR CODE.
