Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

2.0 - Coding Guidelines #57

@pflarr

Description

@pflarr

The following are the general programming guidelines for working on the Pavilion 2.0 branch.

  1. Follow PEP 8 style guidelines, even the parts you don't like.
  2. Write docstrings using sphinx style for everything. The Yaml_config library is a good example.
  3. Stay as python3 compatible as possible, even though we're in 2.7. Import the following from future in all modules, and use them (where appropriate):
  • print_statement
  • division
  • unicode_literals
  1. Keep modules fairly independent from each other.
  2. Write regression/unit tests (made a lot easier by independent modules...)
  3. Write documentation (in sphinx markup) for both users and contributors.
  4. Push changes to separate branches, and then put in a merge request.
  • Merge must be approved by a different developer. Unit tests must pass.
  1. Expect and use unicode strings everywhere, for python3 compatibility.

Doc strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions