Skip to content

chore: configure and run ruff format#469

Merged
willmurphyscode merged 1 commit intomainfrom
chore-add-format
Feb 12, 2025
Merged

chore: configure and run ruff format#469
willmurphyscode merged 1 commit intomainfrom
chore-add-format

Conversation

@willmurphyscode
Copy link
Copy Markdown
Contributor

Add a make target make format that runs ruff format src tests, and call it during pre-commit. The rest of the diff is auto-generated, with the exception that ruff format put an existing type: ignore[attr-defined] on the wrong line when splitting up a line that was too long.

Most of the auto generated diff is line length changes. I'm happy to move the line length configured in tool.ruff.line-length in the pyproject.toml to try to reduce the diff size, but for a first draft I just left it what it was.

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
@willmurphyscode willmurphyscode self-assigned this Feb 12, 2025
Copy link
Copy Markdown
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm definitely not the best to review Python, but LGTM

@willmurphyscode willmurphyscode merged commit 51d312f into main Feb 12, 2025
@willmurphyscode willmurphyscode deleted the chore-add-format branch February 12, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants