radeklat / delfino

A toolbox of command line helper script, wrapping tools used during Python development.
MIT License
12 stars 3 forks source link

Add flag to disable `pre-commit` #21

Closed jacksmith15 closed 2 years ago

jacksmith15 commented 2 years ago

This PR adds a flag which can be set to disable pre-commit integration. This is useful for projects which haven't set up pre-commit, or who use pre-commit in a different way. One concrete example is a monorepo.

Default behaviour is unchanged.

codecov[bot] commented 2 years ago

Codecov Report

Merging #21 (7b03405) into main (55d4004) will decrease coverage by 0.20%. The diff coverage is 11.11%.

@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   48.65%   48.45%   -0.21%     
==========================================
  Files          20       20              
  Lines         707      712       +5     
  Branches       97       99       +2     
==========================================
+ Hits          344      345       +1     
- Misses        360      364       +4     
  Partials        3        3              
Flag Coverage Δ
integration_tests 5.89% <11.11%> (+0.09%) :arrow_up:
total 48.31% <11.11%> (-0.21%) :arrow_down:
unit_tests 48.31% <11.11%> (-0.21%) :arrow_down:

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

Impacted Files Coverage Δ
src/delfino/commands/format.py 33.33% <0.00%> (-4.17%) :arrow_down:
src/delfino/models/pyproject_toml.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.