- Python 3.8+
pip
python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]pytestpytest --cov=src/ipgeolocation --cov-report=term-missing --cov-fail-under=90ruff check src tests
mypy src
pyrightLive tests are disabled by default and consume API credits.
IPGEO_RUN_LIVE_TESTS=true \
IPGEO_FREE_KEY=your_free_key \
IPGEO_PAID_KEY=your_paid_key \
pytest tests/test_live_integration.pyOptional live field-parity hardening:
IPGEO_RUN_LIVE_HARDENING=true \
IPGEO_PAID_KEY=your_paid_key \
pytest tests/test_live_field_parity.py