Skip to content

Conversation

sfc-gh-kmcgrady
Copy link
Collaborator

@sfc-gh-kmcgrady sfc-gh-kmcgrady commented Jan 17, 2025

Introduce pre-commit. It will ensure the following:

  1. License headers are added
  2. Formats Python
  3. Formats JS/TS
  4. trailing white space
  5. Ensures no large files are committed

Open to other pre-commit ideas, but this seems like a solid start for a simple component.

Choose a reason for hiding this comment

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

is this file needed? The reference is commented out

Copy link

@sfc-gh-lmasuch sfc-gh-lmasuch left a comment

Choose a reason for hiding this comment

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

The changes look good, but i think adding pre-commit without having it enforced in CI isn't very useful. Can we add a workflow for this as well like: https://github.com/streamlit/streamlit/blob/develop/.github/workflows/enforce-pre-commit.yml

@sfc-gh-kmcgrady sfc-gh-kmcgrady force-pushed the feature/pre-commit branch 2 times, most recently from 134aec0 to b0a104d Compare January 22, 2025 01:56
Copy link

@sfc-gh-lmasuch sfc-gh-lmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sfc-gh-kmcgrady sfc-gh-kmcgrady merged commit 5629fd7 into feature/bokeh_chart Jan 22, 2025
4 checks passed
@sfc-gh-kmcgrady sfc-gh-kmcgrady deleted the feature/pre-commit branch January 22, 2025 18:28
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