Skip to content

Add python formatting check to pre-commit and CI #548

@hrodmn

Description

@hrodmn

It would be nice if the notebooks in the docs site adhered to a code format/style guideline. ruff is the industry standard for this purpose so I would recommend using it here.

The simplest way to handle python code would be to add a pre-commit hook that runs ruff format on all of the notebooks, then add a CI check that enforces it.

I am unsure about the preferred style guideline for R code, and it will definitely be trickier to get it to apply formatting to R cells in .ipynb files so I would prefer to handle that task separately.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions