- Install the linting packages:
pip3 install pre-commit black isort - When commiting the black & isort check should automatically reformat any edited python code.
To run this yourself you can do:
black ./test_pythonisort ./test_python/ --profile black
To run these tests please build MeshLib first, then do following commands on linux or mac:
python3 -m pip install pytest numpy
cd build/Debug/bin # or build/Release/bin
python3 ./../../../scripts/run_python_test_script.py -d '../test_python'on Windows:
py -3 -m pip install pytest numpy
cd source/x64/Debug # or source/x64/Release
py -3 ..\..\..\scripts\run_python_test_script.py -d '..\test_python'