Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Style guide for repositories

We use pre-commit to automatically enforce certain styles across our infrastructure repository. You can view the full configuration in the .pre-commit-config.yaml file. These tools have been agreed upon by the engineering team and can be applied to a new repository under the 2i2c organisation as a team member sees fit.

A short summary of the tools and the file types they affect are given in the table below.

File typeTools
Markdownprettier
YAMLprettier
Pythonblack, flake8, pyupgrade