Skip to content

standards_and_conventions

ken farmer edited this page Feb 17, 2014 · 4 revisions

Argument and Options Handling

Help

  • -h - should provide standard minimum help info as provided by options handler
  • --long-help - should provide module doc

Input File-Handling

  • Programs should be able to handle stdin, a file argument or multiple files as arguments.

Arg & Opt Handling Module

  • Most code uses optparse, but gradually everything is moving over to argparse.

Importing

Testing

  • Using pytest for unittesting
  • Using tox to simplify unittesting across multiple environments and Python versions (2.6 & 2.7)
Clone this wiki locally