Contributing
Contributions and issues are most welcome! All issues and pull requests are handled through github on the PandABlocks repository. Also, please check for any existing issues before filing a new one. If you have a great idea but it involves big changes, please file a ticket before making a pull request! We want to make sure you don’t spend your time coding something that might not fit the scope of the project.
Running the tests
To get the source source code and run the unit tests, run:
$ git clone git://github.com/PandABlocks/PandABlocks-FPGA.git
$ cd PandABlocks-FPGA
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install -r tests/requirements.txt
$ cp CONFIG.example CONFIG
$ make python_tests
$ make python_timing
Writing VHDL
Code styling here…
Writing Python
Please arrange imports with the following style
# Standard library imports
import os
# Third party package imports
from mock import patch
# Local package imports
from common.python.configs import BlockConfig
Please follow Google’s python style guide wherever possible.
Documentation
There are some conventions:
First usage of a term in a page should link to an entry in the Glossary
Glossary entries should define a reference with a trailing underscore
You can build the docs When in the project directory:
$ source venv/bin/activate
$ pip install -r docs/requirements.txt
$ make docs
$ firefox docs/index.html
Release Checklist
Before a new release, please go through the following checklist:
Add a release note in CHANGELOG.rst
Git tag the version