Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 981 Bytes

File metadata and controls

59 lines (41 loc) · 981 Bytes

Contributing

env

To install Python environment, use:

uv venv env --python 3.12
source env/bin/activate
uv pip install pip

Note

Python 3.12 currently needed for matlabengine.

packages

Requirements

uv pip install pru
pru -r requirements-all.txt

Matlab

Optionally, if you want to test matlab compatibility, you can install matlabengine

uv pip install matlabengine

Install in development mode

uv pip install -e ."[dev]"

Pytest

pytest -n auto -rA --lf -c pyproject.toml --cov-report term-missing --cov=matpowercaseframes tests/
pytest --lf -rA -c pyproject.toml --cov-report term-missing --cov=matpowercaseframes --nbmake

For specific test only:

pytest -n auto -rA --lf -c pyproject.toml \
  --cov-report term-missing --cov=matpowercaseframes \
  tests/test_core.py::test_to_and_read_csv

Pre-Commit

pre-commit install
pre-commit run --all-files