Contributing
When contributing to this repository, please first discuss the change you wish to make using GitHub Issues. Alternatively, get in touch with the Analysis Standards and Pipelines Team at the Office for National Statistics via email.
Pull request process
- Branch from the
devbranch with a descriptive name, e.g.feature-xyx,bug-xyz, or by referencing an issue number. - Update relevant documentation:
- Update Markdown (
.md) files in thedocs/folder if necessary. - Ensure function and class docstrings are clear and complete - documentation is generated from these using
mkdocsandmkdocstrings. - Update the
README.mdfile if needed.
- Update Markdown (
- Once you are ready for review please open a pull request to the
devbranch.- Please fill in the template as much as possible so the changes are clear to a colleague without prior knowledge of the changes.
- This will be merged by maintainers following their approval.
Thank you for contributing to gptables!
Code style
- We name variables using few nouns in lowercase, e.g.
mapping_namesorincrement. - We name functions using verbs in lowercase, e.g.
map_variables_to_namesorchange_values. - We use the numpydoc format for documenting features using docstrings.
- Code formatting and linting are enforced via pre-commit hooks. Please install them by running
pre-commit installin the root directory of the repository.
Testing
- We use pytest for testing. All tests must pass.
- Please ensure that you have added tests for any new features or bug fixes, or raised an issue prompting the team to add this.