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

Pre commit #22

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Pre commit #22

merged 2 commits into from
Oct 7, 2024

Conversation

gvegayon
Copy link
Member

@gvegayon gvegayon commented Oct 7, 2024

This pull request introduces a new pre-commit workflow, configures pre-commit hooks, and cleans up some unnecessary whitespace in various files. The most important changes include adding a pre-commit workflow, configuring pre-commit hooks, and removing trailing whitespace from several files.

New Workflow and Configuration:

  • .github/workflows/pre-commit.yaml: Added a new pre-commit workflow that runs on push and pull request events for the main branch. This workflow sets up Python and runs pre-commit hooks.
  • .pre-commit-config.yaml: Configured pre-commit hooks to check for trailing whitespace, end-of-file fixes, YAML validation, large files, and private keys. Also included hooks for styling files and rendering README RMarkdown files.

Code Cleanup:

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 14.58333% with 82 lines in your changes missing coverage. Please review.

Project coverage is 19.14%. Comparing base (8bd6b18) to head (e241581).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
R/data.R 0.00% 21 Missing ⚠️
R/plot_epi.R 0.00% 15 Missing ⚠️
R/virus.R 0.00% 6 Missing ⚠️
R/ModelSURV.R 0.00% 5 Missing ⚠️
R/ModelSEIRDCONN.R 0.00% 4 Missing ⚠️
R/ModelSIRDCONN.R 0.00% 3 Missing ⚠️
R/make_saver.R 62.50% 3 Missing ⚠️
R/tool.R 0.00% 3 Missing ⚠️
src/model.cpp 0.00% 3 Missing ⚠️
R/ModelSIRMixing.R 0.00% 2 Missing ⚠️
... and 16 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   19.54%   19.14%   -0.40%     
==========================================
  Files          34       34              
  Lines        1740     1776      +36     
==========================================
  Hits          340      340              
- Misses       1400     1436      +36     
Flag Coverage Δ
?

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.

@gvegayon gvegayon merged commit fd77145 into main Oct 7, 2024
13 of 15 checks passed
@gvegayon gvegayon deleted the pre-commit branch October 7, 2024 18:05
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.

1 participant