1
0
Fork 0
mirror of https://github.com/qurator-spk/modstool.git synced 2025-06-26 03:59:55 +02:00
modstool/README-DEV.md

25 lines
498 B
Markdown
Raw Normal View History

2023-12-08 16:28:45 +01:00
```
2025-06-04 19:05:34 +02:00
pip install -r requirements-dev.txt
2023-12-08 16:28:45 +01:00
```
To run tests:
```
2024-07-25 13:26:12 +02:00
pip install -e .
2023-12-08 16:28:45 +01:00
pytest
```
To run a test with profiling:
1. Make sure graphviz is installed
2. Run pytest with with profiling enabled:
```
pytest --profile-svg -k test_page_info
```
2025-06-13 18:15:42 +02:00
# How to use pre-commit
This project optionally uses [pre-commit](https://pre-commit.com) 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`