Style Guide#

WATTS is written in Python 3. Style for Python code should follow PEP 8.

Python code should be annotated with type hints according to PEP 484. Docstrings for functions and methods should follow numpydoc style.

Python code should work with all currently supported versions of Python.

Prefer pathlib when working with filesystem paths over functions in the os module or other standard-library modules. Functions that accept arguments that represent a filesystem path should work with both strings and Path objects.