Skip to content

Format all Python files - #194

Open
Victor-Schwan wants to merge 4 commits into
iLCSoft:masterfrom
Victor-Schwan:format-py
Open

Format all Python files#194
Victor-Schwan wants to merge 4 commits into
iLCSoft:masterfrom
Victor-Schwan:format-py

Conversation

@Victor-Schwan

@Victor-Schwan Victor-Schwan commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

BEGINRELEASENOTES

  • Format all Python files in this repo using ruff and enforce it via pre-commit

ENDRELEASENOTES

@Victor-Schwan Victor-Schwan changed the title Format all python files Format all Python files Aug 10, 2026
@jmcarcell

Copy link
Copy Markdown
Contributor

You probably want to add some CI, like pre-commit to make sure the formatting stays.

Comment thread .git-blame-ignore-revs Outdated
@Victor-Schwan
Victor-Schwan force-pushed the format-py branch 2 times, most recently from e102a40 to 3b94337 Compare August 13, 2026 08:44
Comment thread .ruff.toml
@@ -0,0 +1,10 @@
target-version = "py311"

line-length = 99

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

IIRC the black default is 88. This is copied from k4geo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, this is deliberately chosen. I think the original reason was to follow what black does, but I can't remember now.

Thanks for adding this.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants