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

Switch to pre-commit for lint checks. #3200

Merged
merged 1 commit into from
Apr 27, 2024
Merged

Switch to pre-commit for lint checks. #3200

merged 1 commit into from
Apr 27, 2024

Conversation

stellaraccident
Copy link
Collaborator

@stellaraccident stellaraccident commented Apr 22, 2024

Users can run via pre-commit run or set up a hook as described in the instructions: https://pre-commit.com/

The CI is set to only run pre-commit on files changed in the patch. We will run with --all-files in a separate patch.

@stellaraccident stellaraccident force-pushed the pre-commit branch 2 times, most recently from 9c7f799 to 218a493 Compare April 22, 2024 04:33
@penguin-wwy
Copy link
Collaborator

Before this, we haven't enabled black lint for Python code, do we need to add the black config file?
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-format

@renxida
Copy link
Collaborator

renxida commented Apr 22, 2024

excited excited excited

finally no more passing around precommit gists

@stellaraccident
Copy link
Collaborator Author

Before this, we haven't enabled black lint for Python code, do we need to add the black config file? https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-format

Added.

@stellaraccident stellaraccident changed the title Pre commit Switch to pre-commit for lint checks. Apr 27, 2024
@stellaraccident stellaraccident marked this pull request as ready for review April 27, 2024 20:29
@stellaraccident stellaraccident merged commit fb8748b into main Apr 27, 2024
3 checks passed
@stellaraccident stellaraccident deleted the pre-commit branch April 27, 2024 20:29
archana-ramalingam pushed a commit to archana-ramalingam/torch-mlir that referenced this pull request May 8, 2024
Users can run via `pre-commit run` or set up a hook as described in the
instructions: https://pre-commit.com/

The CI is set to only run pre-commit on files changed in the patch. We
will run with `--all-files` in a separate patch.
archana-ramalingam pushed a commit to archana-ramalingam/torch-mlir that referenced this pull request May 8, 2024
Users can run via `pre-commit run` or set up a hook as described in the
instructions: https://pre-commit.com/

The CI is set to only run pre-commit on files changed in the patch. We
will run with `--all-files` in a separate patch.
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.

4 participants