Skip to content

Make package conform to python conventions #2

@mnunberg

Description

@mnunberg
  • No PascalCase/camelCase filenames. Only underscores are acceptable as word delimters in file names/package names
  • Only classes should have PascalCase, no functions with PascalCase
  • Use class Foo(object) and not class Foo:
  • Use str.format rather than %
  • Variables not intended for public use should be underscore prefixed
  • No variables should have PascalCase. Ideally, no variables should even be camelCase
  • Keep stuff out of init.py. __init__.py is supposed to be a "landing page" kind of module which imports other Python modules and performs some setup/sanity (which isn't needed in this package anyway), not the main module source. This was a bad practice in rmtest, but since this is a new module, let's make it good from the start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions