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`
|