Skip to content

Apply ruff formatting to the codebase #489

@t00sa

Description

@t00sa

@yaswant is proposing that we standardise on ruff as our linter and formatter. Testing shows that fab already complies with the linter, but changes are required to update the formatting. To minimise the impact of the change, we should:

  • reformat the codebase immediately before the next release
  • create a .git-blame-ignore-revs in the root of the repository and add the commit hash of the reformatting release, to ensure that git blame is continues to work as expected
  • update the workflow to apply ruff as a both a linter and format checker

I suggest we adhere to the ruff/black default line length as justified in the black documentation.

Metadata

Metadata

Assignees

Labels

ReleaseItems that are required for the next releasetechnical debt

Type

No type

Projects

Status

In Planning

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions