Before starting, you'll need to ensure you have the appropriate version of Python installed.
- Install the virtual environment manager:
python3 -m pip install virtualenv - Navigate to the project directory:
cd <project folder> - Create a new virtual environment using Python 3:
python3 -m virtualenv venv3 - Activate the virtual environment. On Windows, use
venv3\Scripts\activate. On Unix or MacOS, usesource venv3/bin/activate. - Install the development dependencies and prepare local package:
python3 -m pip install -e .[dev] - Run tests with the command:
pytestTo run tests with coverage:
pytest --cov=python3/raygun4py --cov-report=term-missingThis project uses Ruff for linting and formatting.
# Check formatting
ruff format --check python3/
# Fix formatting
ruff format python3/
# Run linter
ruff check python3/
# Fix auto-fixable lint issues
ruff check --fix python3/- Remember to deactivate the virtual environment when you're done:
deactivate