Your contributions are very much appreciated! If you want to work on this tool, we recommend you do the following:
- Set up a virtual environment in this directory.
- Install this project within itself in editable mode:
pip install -e . - Install the dev requirements:
pip install -r requirements-tests.txt
If you also have a decompilation project, we recommend the following:
- Set up a separate virtual environment in your decompilation project.
- Inside that virtual environment,
pip install -e path/to/your/local/reccmp/repository.
This way, you can easily run your latest reccmp changes against your decompilation project.
isledecomp comes with a suite of tests based on pytest. A number of them can be run out of the box:
pytest .As of this writing, some of the tests still depend on the LEGO Island decompilation project. You will need a copy of the original binaries for LEGO Island in order to execute all tests. This can be done by
pytest . --lego1=/path/to/LEGO1.DLLIn order to keep the Python code clean and consistent, we use pylint and black:
- Run
pylint:pylint reccmp - Check formatting without making changes:
black --check reccmp - Apply formatting:
black reccmp