Skip to content

Add pre-commit with file formatting and GitHub action for running - #33

Open
williambdean wants to merge 9 commits into
walkerke:mainfrom
williambdean:add-pre-commit
Open

williambdean wants to merge 9 commits into
walkerke:mainfrom
williambdean:add-pre-commit

Conversation

@williambdean

Copy link
Copy Markdown
Contributor

This adds pre-commit to handle linting and formatting automatically.

Some common ruff rules are added. Read more here

@williambdean

Copy link
Copy Markdown
Contributor Author

Take a look @walkerke and let me know your thoughts.

Large ammount of changes are automated or wouldve been caught at commit

@walkerke

Copy link
Copy Markdown
Owner

Thanks! I'll work through this - I'm updating some other stuff first, such as some of the underlying package infrastructure. If you have time, would you mind rebasing to grab the latest code?

williambdean and others added 8 commits October 18, 2026 11:20
…changes

Upstream changes to data/enumeration_units/helpers/legislative landed
after the formatting pass, so ruff fixes (mutable defaults, isna, bare
except removal, unused-variable noqa, next() over slice, line wrapping)
are re-applied on top of them.
@williambdean

Copy link
Copy Markdown
Contributor Author

Hi @walkerke , finally getting back to this. Rebased and then worked through some of the recent yellings from ruff formating. Should be in a good place now

This branch has not been deployed

No deployments
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.

2 participants