Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.02 KB

styleguide.md

File metadata and controls

29 lines (18 loc) · 1.02 KB

Style guide for the MIMIC Code Repository

Overview

This guide provides some general guidelines on formatting code for the MIMIC Code Repository. Maintaining a consistent-ish style across the repository should make the code simpler to read and reuse.

Required header information

Please include the following header information at the top of your code:

-- ------------------------------------------------------------------
-- Title: Short descriptive title.
-- Description: More detailed description explaining the purpose.
-- ------------------------------------------------------------------

We would also recommend adding in any relevant references or usage notes in the top of the query.

SQL

  • Always use uppercase for the reserved keywords like SELECT and WHERE.
  • Use lower case for other words such as table and column names.

For more detail, following the guidelines at: http://www.sqlstyle.guide/

Python

Following PEP8 guidelines is recommended. Read more here: https://www.python.org/dev/peps/pep-0008/