Skip to content

UNICT-Quality-Development/qd-starter-pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quality Development starter pack

This repository has been created to give a python template project which includes pytest instructions.

1️⃣ How to start (one-time step)

Fork this repository and clone your fork into your machine using:

git clone [email protected]:USERNAME/qd-starter-pack.git

enter to your project directory using:

cd qd-starter-pack

Setup virtualenv:

python3 -m pip install venv
python3 -m venv venv
source ./venv/bin/activate

After running these commands you'll see a (venv) in your terminal, if so, you are running the python version of the local environment.

Then, install the tests requirements in your local virtual environment

pip install -r requirements_dev.txt

⚠️ Note: You need to run source ./venv/bin/activate every time you open a new terminal to activate the local virtual environment.


2️⃣ How to make a branch

To create a new branch from the main repository and work on a specific exercise (ex. ex1.py) you can use the following commands:

git checkout main

git checkout -b new-branch-name

3️⃣ How to make a commit

From this step you can edit your ex1.py and make some commits using:

git add src/ex1.py

git commit -m 'feat: description'

Use the Conventional Commits when you write a commit description.


4️⃣ How to make a PR

Push the commits into GitHub using:

git push -u origin new-branch-name

Afterward, it is possible to create a Pull Request by going to your fork https://github.com/USERNAME/qd-starter-pack.git clicking on "create Pull Request" or going to the right section "Pull Request" -> "New Pull Request".

If you want to work on another ex1.py, go to step 2️⃣.


Use git wisely.

Clean code

Check this article to understand how to write "clean code" in python.

Contributing

Feel free to improve this README with any other detail, if you do it, I'll be grateful.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages