Skip to content

Latest commit

 

History

History
78 lines (58 loc) · 3.87 KB

CONTRIBUTING.rst

File metadata and controls

78 lines (58 loc) · 3.87 KB

Contributions Overview

The project is always looking for people to contribute to the project! The following rules are guidelines for the various forms of contributions.

Code Contribution Process

Contributions should always be made through GitHub's Pull Request (PR) feature, branched from latest develop branch. This repo comes with a template for Pull Requests and should be fully completed.

Once the PR is submitted, the @niftools/blender-niftools-addon-review team is automatically notified and will start a discussion process. This can include ensuring the commit is beneficial to the project as a whole, is appropriately scoped, discuss any issues regarding the design, and ensuring all requirements are met. This is an iterative process; additional commits can be appended at any time based on PR discussion to the source branch and will be automatically included in the PR.

There are three conditions any contribution to the codebase should respect: - Clean, commented implementation that doesn't break existing functionality - Tests to prove the implementation works and regression is still green - Appropriate documentation updates

Merging of the PR is at the discretion of the ''@niftools/blender-niftools-addon-merge'' team. These are not exclusive conditions for a contribution to be accepted but generally enforced as close as possible to ensure quality.

Code

The general rule of thumb is to see what has gone before, but if your way is better, ensure you demonstrate that to the review team.

  • Adhere to the existing conventions, read main documentation for developers.
  • Code should be as easy to read as possible.
  • Comments should help break down complex behavior. If the behavior is too complex, group the code into logical chunks, or extract it into functions to make it easier to understand the code.
  • Docstrings to describe the intention, not implementation, and are required.
  • Self-describing code is good and may provide functionality, but it's useless if it doesn't do what is actually needed.

Testing

Our template includes sections relating to ensure appropriate testing has been completed.

  • If you change the behavior of part of the code, you should try to change the relevant tests to adapt to the new behavior.
  • If a test fails, it must be fixed either in the test or the code.

Whenever possible, for every API additions add either unit or integration tests. The template requires documenting any tests changes in the Pull Request. Expect questions about any test updates or deletions.

Documentation

Documentation is used by both users and developers and is published alongside the code.

  • Any updates that add, remove or modify behavior require corresponding documentation updates to ensure that user is informed of all software functionality
  • Supporting developer documentation should be updated with relevant changes, design decisions, etc.

Reviewer Contribution

The review group is to ensure that contributions are openly discussed, people can participate in the development process and ensure the quality of development

  • If you are interested in joining the review group to give your input on contributions, talk to the @niftools/core team to be added as a reviewer. You will automatically receive notifications for any PR related to this repo.

Release Process

When all issues in a milestone are complete, a release branch is created from the dev branch, tagged, log updates and PR done towards master.