python3 -m venv venv # At least python 3.10
source venv/bin/activate
pip install -r requirements-dev.txt
pre-commit install
pip install -v -e .
cd src/litgen/integration_tests
pip install -v -e .
cd -
Then you can also add them as a C++ CMake project.
mkdir build && cb build
cmake ..
make
(Each time you compile the project, the bindings for the integration tests will be regenerated and recompiled)
./ci_scripts/devel/run_all_checks.sh
(This will run mypy, black, ruff and pytest)
You can use snakeviz to visualize the profiling results. http://jiffyclub.github.io/snakeviz/
pip install snakeviz
python -m cProfile -o profile.prof your_test.py
snakeviz profile.prof
Don't use {} in function default params !!! It is wrongly parsed by srcML.