Volker · @Volker
38 followers · 25 posts · Server fosstodon.org

Any experts here? I'm on a team where we use -commit hooks for some checks. The `.pre-commit-config.yml` is part of the repo. However, I would like to add some local (to my machine) pre-commit hooks (`darker`) that other developers in the team don't want to have as part of there default setup.
Can I specify an additional configuration file that I don't commit to the repo (or somehow use an environment variable) to specify local pre-commit hooks?

#git #precommit #pre

Last updated 1 year ago

Neil :emacs: :orgmode: · @nshephard
42 followers · 397 posts · Server fosstodon.org

Another blog post written (primarily for work) on using R and precommit

ns-rse.github.io/posts/pre-com

#rstats #precommit

Last updated 1 year ago

Luc Sorel-Giffo · @lucsorelgiffo
46 followers · 142 posts · Server floss.social

ce vendredi 30 juin 2023 au à , je parlerai d'une façon d'outiller la qualité de code avec , un outil qui permet de lancer vos formateurs de code, linter, générateur de documentation, etc. sur le cycle de vie de vos projets.

Du commit à la production en passant par l'intégration continue, maintenez vos exigences de qualité de code, qu'elles soient définies en solo ou en équipe.

Diaporama source et pdf disponibles sur github.com/lucsorel/hook-il-es.

#breizhcamp #rennes #precommit #git

Last updated 1 year ago

__coatldev__ · @__coatldev__
1 followers · 9 posts · Server fosstodon.org
__coatldev__ · @__coatldev__
1 followers · 5 posts · Server fosstodon.org

We have just released version 2.3.0 of our reusable workflows.

Check 'em out here:

github.com/coatl-dev/workflows

#github #ci #workflows #python #nox #tox #precommit #pypi #mypy

Last updated 2 years ago

Jeff Triplett · @webology
1044 followers · 2111 posts · Server mastodon.social

🤔 Is it common for projects that use pre-commit.com not to tell people how to use it?

👉 Let me rephrase that. It is common for projects that use pre-commit.com not to tell people how to use it.

🙋 Has anyone seen a good project that explained how to use pre-commit with it that you like?

#python #precommit

Last updated 2 years ago

✍️ New post covering ways to skip hooks:

1. --no-verify where supported
2. hook managers like which support SKIP or similar environment variable
3. core.hooksPath=/dev/null to bypass all hooks

adamj.eu/tech/2023/02/13/git-s

#git #precommit

Last updated 2 years ago

✍️ New post on using pre-commit to run otherwise unsupported tools, with examples using 'node' and 'system'.

adamj.eu/tech/2023/02/09/pre-c

#precommit #git

Last updated 2 years ago

meliache · @meliache
54 followers · 129 posts · Server hep.social

I think would helpful to have _a_ (not necessarily my) hook listed under pre-commit.com/hooks.html . This is where I searched for available hooks and only found the `pre-commit-latex-hook` repo, which is cool but not what I was looking for. 3/3

#chktex #precommit #texlatex

Last updated 2 years ago

meliache · @meliache
54 followers · 127 posts · Server hep.social

I was surprised I couldn't find [*] a hook to run the via the pre-commit framework (pre-commit.com) for . It was trivial to create a new pre-commit configuration that simply runs chktex, I published a WIP repo under: github.com/meliache/pre-commit .
I contains two hooks: chktex-system, which uses the system executable and chktex-conda, which installs chktex via . Still I think probably this already exists somewhere and I just missed it. 1/N

#precommit #chktex #latex #linter #git #conda

Last updated 2 years ago

New blog post on managing execute permissions in , including a hook for checking executable scripts.

adamj.eu/tech/2023/01/31/git-a

#git #precommit

Last updated 2 years ago

hugovk · @hugovk
409 followers · 300 posts · Server mastodon.social

failing on in in with this?

[extras.pipfile_deprecated_finder.2] 'pip-shims<=0.3.4' does not match '^[a-zA-Z-_.0-9]+$'

It's fixed in github.com/PyCQA/isort/pull/20, bump your isort to 5.12.0.

Update with:

pre-commit autoupdate

Or:

pre-commit autoupdate --repo github.com/PyCQA/isort

#isort #ci #precommit #python

Last updated 2 years ago

Brad Brown · @bradsbrown
63 followers · 234 posts · Server mastodon.social

So…who do we know at the that can rush a PR approval on a Saturday? I’m betting a lot of people have a broken plugin right now.

github.com/PyCQA/isort/issues/
github.com/PyCQA/isort/pull/20

#pycqa #isort #precommit

Last updated 2 years ago

Dennis Irsigler · @dirsigler
148 followers · 333 posts · Server infosec.exchange

Let's start the heated discussion:
either:

Build an application binary as part of and push it during the job back into the repository

OR

Build the application binary before committing via git hooks, , , others...

#cicd #git #precommit #makefile

Last updated 2 years ago

Luc Sorel-Giffo · @lucsorelgiffo
14 followers · 2 posts · Server floss.social

lors du dernier , Jérôme Marchand et moi avons parlé d'outillage de la qualité de code, du commit à la production avec : des hooks à l'infrastructure as code en passant par , la bibliothèque @pre_commit peut outiller la qualité de code des projets dans une multitude de langages : etc.

- rediffusion de l'intervention : youtu.be/QoMOZuegwUY
- support de présentation : github.com/lucsorel/hook-il-es

#PHP #Rust #Go #JavaScript #Java #Python #integrationcontinue #iac #git #precommit #pythonrennes

Last updated 2 years ago

Luc Sorel-Giffo · @lucsorelgiffo
9 followers · 2 posts · Server fosstodon.org

lors du dernier , Jérôme Marchand et moi avons parlé d'outillage de la qualité de code, du commit à la production avec : des hooks à l'infrastructure as code en passant par , la bibliothèque @pre_commit peut outiller la qualité de code des projets dans une multitude de langages : etc.

- rediffusion de l'intervention : youtu.be/QoMOZuegwUY
- support de présentation : github.com/lucsorel/hook-il-es

#pythonrennes #precommit #git #iac #integrationcontinue #python #java #javascript #go #rust #php

Last updated 2 years ago

sirhc · @sirhc
57 followers · 94 posts · Server fosstodon.org

Dunno if the 2 hrs I just spent figuring out how to write a git hook and relearning will ever repay itself in time but just knowing that I'll never commit a .m file with a comment starting with a hashtag (valid in , not in ) makes my soul happy.

#precommit #regularexpressions #octave #matlab

Last updated 2 years ago