excelminer / Development

Testing & Development

How to install dev dependencies, run tests, and format code.

Install dev dependencies

pip install -e ".[dev]"

Run tests

Unit tests

pytest

Integration tests

pytest -m integration

COM integration tests are opt-in and can crash some environments.

COM integration tests (opt-in)

$env:EXCELMINER_RUN_COM_TESTS='1'
pytest -m integration

PowerShell example for enabling COM tests on Windows.

Formatting

  • black
  • isort
  • flake8
  • mypy
black src/excelminer tests
isort --profile black src/excelminer tests

Pre-commit hooks are recommended for contributors.