Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format with black #120

Merged
merged 13 commits into from
Jul 15, 2023
Merged

Format with black #120

merged 13 commits into from
Jul 15, 2023

Conversation

lukasschwab
Copy link
Owner

@lukasschwab lukasschwab commented Jul 15, 2023

Description

Use black to format this codebase.

  • Adds a make format target.
  • Pulls static analysis into a separate workflow without Python version compatibility concerns.

If this turns out to be a pain for contributors, can revert the CI changes. I think being more selective with the dependencies installed in the pytest job makes sense — prevents an accidental dependency on a dev dependency.

Breaking changes

List any changes that break the API usage supported on master.

None; purely dev tooling.

Relevant issues

List GitHub issues relevant to this change.

None.

Checklist

  • (If appropriate) README.md example usage has been updated.

This is more correct: test behavior shouldn't depend on dev dependencies
at all.
It isn't just formatting anymore...
Bodge. Ideally we shouldn't be trying to install black in the test step;
should just be installing the minimal dependencies (install_requires and
pytest).
Want to format? Install it independently. Also a bodge.
@lukasschwab lukasschwab merged commit 4743957 into master Jul 15, 2023
6 checks passed
@lukasschwab lukasschwab deleted the use-black branch July 15, 2023 05:09
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.

None yet

1 participant