Skip to content

Update linting with prek, yamllint and zizmor - #2700

Merged
greglucas merged 3 commits into
SciTools:mainfrom
QuLogic:lint
Jul 24, 2026
Merged

greglucas merged 3 commits into
SciTools:mainfrom
QuLogic:lint

Conversation

@QuLogic

@QuLogic QuLogic commented Jul 16, 2026

Copy link
Copy Markdown
Member

Rationale

Like Matplotlib did before, switch from pre-commit to prek. Also add yamllint and zizmor, fixing issues pointed out by them.

Implications

Faster pre-commit checks, more secure workflows, etc.

However, due to zizmorcore/zizmor#2197 we may not want to merge this just yet. I've put it in draft for now.

@QuLogic QuLogic changed the title Update linting with prek, yamlling and zizmor Update linting with prek, yamllint and zizmor Jul 16, 2026
@QuLogic
QuLogic force-pushed the lint branch 2 times, most recently from 37f1b9b to 6599183 Compare July 17, 2026 19:43
@QuLogic

QuLogic commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

I rebased and added an ignore for zizmor; this can be removed after their next release.

@QuLogic
QuLogic marked this pull request as ready for review July 20, 2026 23:15
@greglucas
greglucas merged commit ab326e8 into SciTools:main Jul 24, 2026
38 of 39 checks passed
@QuLogic QuLogic added this to the Next Release milestone Jul 24, 2026
@QuLogic
QuLogic deleted the lint branch July 24, 2026 04:27
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