Skip to content

4Catalyzer/python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python

We rely on Fourmat to automatically format and lint code according to our style guidelines. Below are additional guidelines that are not taken care of by Fourmat.

Data types

Prefer immutable data types over their mutable equivalents. Specifically, prefer tuple and frozenset over list and set respectively when the relevant collections will not be mutated. However, it is acceptable to use list over tuple for collections that semantically constitute homogeneous lists rather than heterogeneous tuples, though tuple may still be better when the list is short.

Preferred tools

  • For data frame manipulation, use pandas.
  • For building command line interfaces, prefer Click.
  • For testing, use pytest.
    • Prefer fixtures over explicit setup and teardown.

About

4Catalyzer Python Style Guide

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages