Skip to content

Update linting and pin black (also in CI)#43

Merged
xylar merged 11 commits into
pyscience-projects:masterfrom
xylar:fix-linting
Apr 27, 2026
Merged

Update linting and pin black (also in CI)#43
xylar merged 11 commits into
pyscience-projects:masterfrom
xylar:fix-linting

Conversation

@xylar
Copy link
Copy Markdown
Collaborator

@xylar xylar commented Apr 27, 2026

This PR updates black to the latest version (26.3.1), makes sure CI uses that version, and lints the code with that version.

It adds a pyproject.toml to configure black and adds pre-commit as to the development conda environment.

(We should probably migrate setup.py and setup.cfg to pyproject.toml at some point...)

Closes #42

Make sure we use this in CI, development environments and pre-commit
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Apr 27, 2026

@ecederstrand, I included your commit here. I wanted to get CI working again.

@xylar xylar requested a review from MuellerSeb April 27, 2026 15:22
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Apr 27, 2026

@MuellerSeb, could you have a look?

Copy link
Copy Markdown
Collaborator

@MuellerSeb MuellerSeb left a comment

Choose a reason for hiding this comment

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

Cool! Good point to switch to pyproject.toml.

Why the long line length?

Beside that. I am okay with it.

Comment thread pyproject.toml Outdated
Comment thread .github/workflows/black.yml Outdated
Comment thread requirements.txt
Copy link
Copy Markdown
Collaborator

@MuellerSeb MuellerSeb left a comment

Choose a reason for hiding this comment

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

LGTM.

@xylar xylar self-assigned this Apr 27, 2026
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Apr 27, 2026

Thanks so much @MuellerSeb.

@xylar xylar merged commit 36d864a into pyscience-projects:master Apr 27, 2026
6 checks passed
@xylar xylar deleted the fix-linting branch April 27, 2026 15:55
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