mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-08-09 17:49:52 +02:00
654 B
654 B
pip install -r requirements-dev.txt
To run tests:
pip install -e .
pytest
To run a test with profiling:
- Make sure graphviz is installed
- Run pytest with with profiling enabled:
pytest --profile-svg -k test_page_info
To directly test the CLIs using our test data, run:
mods4pandas src/mods4pandas/tests/data/mets-mods
alto4pandas src/mods4pandas/tests/data/alto
How to use pre-commit
This project optionally uses pre-commit to check commits. To use it:
- Install pre-commit, e.g.
pip install -r requirements-dev.txt
- Install the repo-local git hooks:
pre-commit install