- Clone the repository
git clone https://github.com/dldevinc/cardpointe-api-python-client
- Create a virtualenv
cd cardpointe-api-python-client virtualenv .venv - Activate virtualenv
source .venv/bin/activate - Install dependencies as well as a local editable copy of the library
pip install -r ./requirements.txt pip install -e .
We use pre-commit hooks to simplify linting
and ensure consistent formatting among contributors. Use of pre-commit
is not a requirement, but is highly recommended.
pip install pre-commit
pre-commit installCommiting will now automatically run the local hooks and ensure that your commit passes all lint checks.
To run unit tests:
pytest