Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.6 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.6 KB

safe-sports-streams

Build Status Coverage Status

For Developers

Virtual Environment

We suggest using a virtualenv, which will allow you to install this package and its dependencies in an isolated Python environment. Once you have Python 3 installed on your machine, you can create a virtual environment called .venv by running:

$ virtualenv -p python3 .venv

Once the virtual environment is created, activate it by running:

$ source .venv/bin/activate

Any Python libraries installed will not be contained within this virtual environment. To deactivate the environment, run:

$ deactivate

Installing Development Environment

To work on code and test changes in the package, install it in editable mode locally in your virtualenv by running:

$ make dev

This will also install our pre-commit hooks and local packages needed for style checks.

Testing

We use pytest to run our tests. Our tests are located in the tests/ directory in the repo and should be run after installing the package locally. Tests can be run by calling:

$ pytest tests/