Friday, June 11, 2021

Test and Code: 157: pre-commit - Anthony Sottile

pre-commit started as a framework for running linters and code formatters during git actions via git hooks. It's grown and expanded and now supports an extensive list of languages and actions and manual running of actions. But even at it's core, it's great for letting computers nitpick about whitespace and formatting, so that code reviews can focus on architecture and design.

Anthony Sottile discusses pre-commit, for using locally by developers, and pre-commit.ci, which can run actions during merge requests.

"Git hook scripts are useful for identifying simple issues before submission to code review. We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements. By pointing these issues out before code review, this allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks." - pre-commit.com

"Developers spend a fair chunk of time during their development flow fixing relatively trivial problems in their code. pre-commit.ci both enforces that these issues are discovered, which is opt in for each developer workflow via pre-commit, but also fixes the issues automatically, letting developers focus their time on more valuable problems." - A user of pre-commit.ci

Special Guest: Anthony Sottile.

Sponsored By:

Support Test & Code : Python Testing

Links:

<p>pre-commit started as a framework for running linters and code formatters during git actions via git hooks. It&#39;s grown and expanded and now supports an extensive list of languages and actions and manual running of actions. But even at it&#39;s core, it&#39;s great for letting computers nitpick about whitespace and formatting, so that code reviews can focus on architecture and design.</p> <p>Anthony Sottile discusses pre-commit, for using locally by developers, and pre-commit.ci, which can run actions during merge requests.</p> <p>&quot;Git hook scripts are useful for identifying simple issues before submission to code review. We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements. By pointing these issues out before code review, this allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks.&quot; - <a href="https://pre-commit.com/" rel="nofollow">pre-commit.com</a></p> <p>&quot;Developers spend a fair chunk of time during their development flow fixing relatively trivial problems in their code. pre-commit.ci both enforces that these issues are discovered, which is opt in for each developer workflow via pre-commit, but also fixes the issues automatically, letting developers focus their time on more valuable problems.&quot; - A user of <a href="https://pre-commit.ci/" rel="nofollow">pre-commit.ci</a></p><p>Special Guest: Anthony Sottile.</p><p>Sponsored By:</p><ul><li><a href="https://ift.tt/2JDHRTz" rel="nofollow">PyCharm Professional</a>: <a href="https://ift.tt/2JDHRTz" rel="nofollow">Try PyCharm Pro for 4 months and learn how PyCharm will save you time.</a> Promo Code: TESTANDCODE21</li><li><a href="https://configcat.com/" rel="nofollow">ConfigCat.com</a>: <a href="https://configcat.com/" rel="nofollow">Release features faster with less risk with ConfigCat. You can try it out with the forever free plan or get 25% off with code testandcode2021</a> Promo Code: testandcode2021</li></ul><p><a href="https://ift.tt/2tzXV5e" rel="payment">Support Test & Code : Python Testing</a></p><p>Links:</p><ul><li><a href="https://pre-commit.com/" title="pre-commit" rel="nofollow">pre-commit</a></li><li><a href="https://ift.tt/2vUFPtv" title="pre-commit supported hooks" rel="nofollow">pre-commit supported hooks</a></li><li><a href="https://pre-commit.ci/" title="pre-commit.ci" rel="nofollow">pre-commit.ci</a></li></ul>

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...