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

chore(ci): run pre-commit across the repo #26942

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

mistercrunch
Copy link
Member

#26920 caught an issue that should have been picked up by pre-commit (by the user), but then re-caught by CI, preventing the merge.

The reason is was not caught was that the CI check is part of a group of python misc checks that trigger only where the python package's folder has changed. In reality, the python utility pre-commit we use here is used for much more than just Python files, so we should run it across the repo.

Here I simply factored out the check into its own GitHub Action that triggers for every single CI run. The code block in this PR is identical/unchanged

#26920 caught an issue that
should have been picked up by pre-commit (by the user), but then
re-caught by CI, preventing the merge.

The reason is was not caught was that the CI check is part of a group of
python misc checks that trigger only where the python package's folder
has changed. In reality, the python utility pre-commit we use here is
used for much more than just Python files, so we should run it across
the repo.

Here I simply factored out the check into its own GitHub Action that
triggers for every single CI run.
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Thanks! Here's to a lint-free future.

Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5b510fc) 67.31% compared to head (bc76e80) 67.31%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #26942   +/-   ##
=======================================
  Coverage   67.31%   67.31%           
=======================================
  Files        1895     1895           
  Lines       74206    74206           
  Branches     8219     8219           
=======================================
  Hits        49952    49952           
  Misses      22205    22205           
  Partials     2049     2049           
Flag Coverage Δ
mysql 77.97% <ø> (ø)
postgres 78.07% <ø> (ø)
python 78.21% <ø> (ø)
sqlite 77.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mistercrunch mistercrunch merged commit bd9afcd into master Jan 31, 2024
35 checks passed
@mistercrunch mistercrunch deleted the pre-commit-checks branch January 31, 2024 23:19
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants