Contributor’s Guide
Contributions are always welcome and greatly appreciated!
Code contributions
We love pull requests from everyone! Here’s a quick guide to improve the code:
Fork the repository and clone the fork.
Create a virtual environment using your tool of choice (e.g.
virtualenv
,conda
, etc).Install development dependencies:
pip install -r requirements-dev.txt
From the compas_fab directory, run the docker containers:
docker-compose -f "tests/integration_setup/docker-compose.yml" up -d --build
Make sure all tests pass:
invoke test --doctest --codeblock
Start making your changes to the main branch (or branch off of it).
Make sure all tests still pass:
invoke test --doctest --codeblock
From the compas_fab directory, stop the docker containers:
docker-compose -f "tests/integration_setup/docker-compose.yml"" down
Check there are no linter errors:
invoke lint
Add yourself to
AUTHORS.rst
.Commit your changes and push your branch to GitHub.
Create a pull request through the GitHub website.
During development, use pyinvoke tasks on the command prompt to ease recurring operations:
invoke clean
: Clean all generated artifacts.invoke check
: Run various code and documentation style checks.invoke docs
: Generate documentation.invoke lint
: Run code linter for coding style checks.invoke test
: Run all tests and checks in one swift command.invoke
: Show available tasks.
Documentation improvements
We could always use more documentation, whether as part of the introduction/examples/usage documentation or API documentation in docstrings.
Documentation is written in reStructuredText and use Sphinx to generate the HTML output.
The project uses Numpy style docstrings, see Sphinx extension Napoleon’s documentation for examples.
Once you made the documentation changes locally, run the documentation generation:
invoke docs
Bug reports
When reporting a bug please include:
Operating system name and version.
Python version.
Any details about your local setup that might be helpful in troubleshooting.
Detailed steps to reproduce the bug.
Feature requests and feedback
The best way to send feedback is to file an issue on Github. If you are proposing a feature:
Explain in detail how it would work.
Keep the scope as narrow as possible, to make it easier to implement.