Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.04 KB

contributing.md

File metadata and controls

40 lines (31 loc) · 1.04 KB

Contributing

Clone the repository

Fork the repository on GitHub and clone your fork locally.

# Clone your fork and cd into the repo directory
git clone https://github.com/<your-username>/pydantic-config.git
cd pydantic-config

Virtual environment

Create an isolated environment using python's built-in venv library. In this example we will create the virtual environment in the project root.

# Create a virtual environment called "venv"
python -m venv venv

# Activate the virtual environment
source ./venv/bin/activate

Install dependencies

Install the required dependencies using the command below. This will install all of the project dependencies listed in the pyproject.toml file and also install the pydantic-config package in editable mode.

# Install dependencies in the requirements.txt file
pip install -r requirements.txt

Testing with pytest

After making your changes to the code, be sure to run all of the tests to make sure none of the changes made have broken anything

pytest