Skip to content

Add blacken script and format fixes#9

Merged
mrodden merged 1 commit intomasterfrom
add-blacken-script
May 19, 2025
Merged

Add blacken script and format fixes#9
mrodden merged 1 commit intomasterfrom
add-blacken-script

Conversation

@mrodden
Copy link
Contributor

@mrodden mrodden commented May 15, 2025

blacken.sh can be used by developers to run format on the python source files in the repo.

The scope of files it runs on is limited at the moment since running black on the jax files results in large diffs which makes it hard to track changes from upstream. Eventually when the PJRT stuff is fully integrated to the repo we can run it on those. The jaxlib kernels is still an open question.

The script will pass any args it receives to the inner black command so args like --diff and --check work.

blacken.sh can be used by developers to run
format on the python source files in the repo.

The scope of files it runs on is limited at the moment
since running black on the jax files results in large
diffs which makes it hard to track changes from upstream.
Eventually when the PJRT stuff is fully integrated to the repo
we can run it on those. The jaxlib kernels is still an
open question.

The script will pass any args it receives to the inner black
command so args like --diff and --check work.
@mrodden mrodden merged commit e74059b into master May 19, 2025
@mrodden mrodden deleted the add-blacken-script branch May 19, 2025 16: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