Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions