dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.8K
active users

#precommit

0 posts0 participants0 posts today
Python Rennes<p>Nous avons tous nos bonnes pratiques lorsqu'il s'agit de créer un nouveau <a href="https://social.breizhcamp.org/tags/projet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>projet</span></a> <a href="https://social.breizhcamp.org/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a>, avec l'utilisation de patterns et d'outils éprouvés : lint avec <a href="https://social.breizhcamp.org/tags/ruff" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruff</span></a> et <a href="https://social.breizhcamp.org/tags/mypy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mypy</span></a>, hooks avec <a href="https://social.breizhcamp.org/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a>, tests avec <a href="https://social.breizhcamp.org/tags/pytest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pytest</span></a>, intégration continue <a href="https://social.breizhcamp.org/tags/githubactions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>githubactions</span></a> : <a href="https://github.com/neubig/starter-repo" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/neubig/starter-repo</span><span class="invisible"></span></a> </p><p>Libre à chaque personne de faire évoluer le porojet selon ses propres goûts et contraintes.</p>
Serge Matveenko ♻️☮️Ⓐ<p>🚀 One of the most satisfying parts of coding? Watching TODOs appear and disappear automatically! </p><p>I've been using `todo-md` (<a href="https://codeberg.org/lig/todo-md" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">codeberg.org/lig/todo-md</span><span class="invisible"></span></a>). It makes tracking "TODO:" comments effortless—new ones pop up in the file when added, and completed ones vanish when removed from the code. Super useful for keeping things organized without extra effort! </p><p>Highly recommend giving it a try if you love a clean, automated workflow. 🔥 <a href="https://fosstodon.org/tags/DevTools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevTools</span></a> <a href="https://fosstodon.org/tags/Automation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Automation</span></a> <a href="https://fosstodon.org/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a> <a href="https://fosstodon.org/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a> <a href="https://fosstodon.org/tags/TODOmd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TODOmd</span></a></p>
Serge Matveenko ♻️☮️Ⓐ<p>🎉 Here are some good news regarding the <a href="https://fosstodon.org/tags/TODOmd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TODOmd</span></a> project!</p><p>I've just released TODOmd v2.0 that is a complete rewrite of the project in Go.<br>It is now around 5x faster and supports a lot of different platforms (even Windows 🤷‍♂️ ).</p><p>TODOmd is a pre-commit hook that maintains `TODO.md` file in your repo.</p><p>Please, give it a try and tell me how you like it:)</p><p><a href="https://codeberg.org/lig/todo-md" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">codeberg.org/lig/todo-md</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a> <a href="https://fosstodon.org/tags/DevTools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevTools</span></a></p>
Ariel (🐿 arc)<p>Giving prefligit a go, replacement for pre-commit. Had some issues wrangling the build as Nix homeless-shelter was causing test failures with no clear answer from searching.</p><p><a href="https://github.com/j178/prefligit/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/j178/prefligit/</span><span class="invisible"></span></a></p><p><a href="https://eigenmagic.net/tags/Nix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Nix</span></a> <a href="https://eigenmagic.net/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a></p>
Serge Matveenko ♻️☮️Ⓐ<p>So, I've been using `TODO.md` pre-commit hook for a week and it's already one of the most valuable dev tools I've ever had.</p><p>It just works and keeps all TODOs from my code in one single file. When I started developing it I imagined that exactly like this. This is so satisfying:)</p><p>You can try it in your repo without installing with a single command: `pre-commit try-repo <a href="https://codeberg.org/lig/todo-md" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">codeberg.org/lig/todo-md</span><span class="invisible"></span></a> todo-md --all-files`.</p><p>I'm really pleased by the end result.</p><p><a href="https://fosstodon.org/tags/TODOmd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TODOmd</span></a> <a href="https://fosstodon.org/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a> <a href="https://fosstodon.org/tags/Git" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Git</span></a> <a href="https://fosstodon.org/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a></p>
Serge Matveenko ♻️☮️Ⓐ<p>Hey! I've just released `todo-md` v1 🚀.<br>Keep your tasks organized with todo-md!</p><p>The pre-commit hook automatically maintains a TODO.md file by scanning your staged files for TODO: comments. You do not need complicated task trackers bloated with features anymore:)<br>Let your code speak for itself!</p><p>Get it now: <a href="https://codeberg.org/lig/todo-md" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">codeberg.org/lig/todo-md</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/TODOmd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TODOmd</span></a> <a href="https://fosstodon.org/tags/DevTools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevTools</span></a> <a href="https://fosstodon.org/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a> <a href="https://fosstodon.org/tags/Automation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Automation</span></a> <a href="https://fosstodon.org/tags/OpenSource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenSource</span></a> <a href="https://fosstodon.org/tags/Git" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Git</span></a> <a href="https://fosstodon.org/tags/Todo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Todo</span></a></p>
Daniel Andrlik<p>I've started using tox-uv so that I can run my tox sessions with uv as the backend, and it's been a great experience. Highly recommend.</p><p><a href="https://github.com/tox-dev/tox-uv" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/tox-dev/tox-uv</span><span class="invisible"></span></a></p><p>I also recommend you use the tox project's <a href="https://github.com/tox-dev/pre-commit-uv" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/tox-dev/pre-commit-</span><span class="invisible">uv</span></a> for extremely fast pre-commit env creation and management.</p><p><a href="https://fedi.andrlik.org/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://fedi.andrlik.org/tags/testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>testing</span></a> <a href="https://fedi.andrlik.org/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a> <a href="https://fedi.andrlik.org/tags/tox" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tox</span></a> <a href="https://fedi.andrlik.org/tags/uv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>uv</span></a></p>
James Scholes<p>I can't lie, each time <a href="https://dragonscave.space/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a> says it's "Stashing unstaged files to ...", I worry that I'll never get them back. I do not trust software. <a href="https://dragonscave.space/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a></p>
mgorny-nyan (he) :autism:🙀🚂🐧<p>Did I ever mention that I hate how often modern software treats your home directory like a waste dump, and never bothers cleaning up after itself?</p><p>I've just discovered 2G of random stuff in ~/.local/share/virtualenv. And 8G in ~/.local/share/baloo — and I don't recall ever using that. I'm not going to even talk of ~/.cache/pip and ~/.cache/pre-commit (I guess that's the most misdesigned tool I've ever were forced to use) — but these are at least in the correct top-level directory.</p><p>Is it really that hard to implement some cache cleanup?</p><p><a href="https://social.treehouse.systems/tags/Gentoo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Gentoo</span></a> <a href="https://social.treehouse.systems/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://social.treehouse.systems/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> <a href="https://social.treehouse.systems/tags/pip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pip</span></a> <a href="https://social.treehouse.systems/tags/VirtualEnv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VirtualEnv</span></a> <a href="https://social.treehouse.systems/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a></p>
Neil :emacs: :orgmode:<p><span class="h-card" translate="no"><a href="https://techhub.social/@diazona" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>diazona</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@diogoeichert" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>diogoeichert</span></a></span> <span class="h-card" translate="no"><a href="https://todon.eu/@carmenbianca" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>carmenbianca</span></a></span> pre-commit (<a href="https://pre-commit.com/hooks" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pre-commit.com/hooks</span><span class="invisible"></span></a>) has a bunch of hooks for most languages that have formatters available. Well worth checking out applying liberally across projects.</p><p>For Python <a href="https://fosstodon.org/tags/ruff" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruff</span></a> is current front runner.</p><p>Also pre-commit.ci is useful for applying/catching instances where contributors don't use pre-commit locally.</p><p><a href="https://pre-commit.com/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pre-commit.com/</span><span class="invisible"></span></a><br><a href="https://pre-commit.ci/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pre-commit.ci/</span><span class="invisible"></span></a></p><p><a href="https://ns-rse.github.io/posts/pre-commit/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ns-rse.github.io/posts/pre-com</span><span class="invisible">mit/</span></a></p><p><a href="https://fosstodon.org/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a></p>
RSE Sheffield<p>RSE team member <span class="h-card" translate="no"><a href="https://fosstodon.org/@nshephard" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>nshephard</span></a></span> has written about a really useful tool for checking your Python repository on GitHub.</p><p>Read all about it at...</p><p><a href="https://rse.shef.ac.uk/blog/repo-review/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">rse.shef.ac.uk/blog/repo-revie</span><span class="invisible">w/</span></a></p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a> <a href="https://fosstodon.org/tags/packaging" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>packaging</span></a></p>
Neil :emacs: :orgmode:<p>Found a really useful Python package development tool I'll be employing on repositories I work on.</p><p>Read about it here...</p><p><a href="https://ns-rse.github.io/posts/repository-review/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ns-rse.github.io/posts/reposit</span><span class="invisible">ory-review/</span></a></p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/packaging" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>packaging</span></a> <a href="https://fosstodon.org/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a></p>
Anders Eknert<p>I like the idea of <a href="https://hachyderm.io/tags/PreCommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PreCommit</span></a> hooks running tests, linters and whatever. In practice, I almost always disable them after some time having found it mostly distracting / annoying.</p><p>Running checks pre-push strikes the right balance for me, but that’s already so ingrained in me that I don’t need help to do so.</p>
Tobias Schmidl<p>i've added a <span class="h-card"><a href="https://floss.social/@WoodpeckerCI" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>WoodpeckerCI</span></a></span> pre-commit hook for linting woodpecker configs before commiting them to your repo. <a href="https://git.schmidl.dev/schtobia/woodpecker-lint" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">git.schmidl.dev/schtobia/woodp</span><span class="invisible">ecker-lint</span></a></p><p><a href="https://augsburg.social/tags/woodpecker" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>woodpecker</span></a> <a href="https://augsburg.social/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a></p>
meliache<p>I was surprised I couldn't find [*] a <a href="https://hep.social/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a> hook to run the <a href="https://hep.social/tags/ChkTeX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ChkTeX</span></a> <a href="https://hep.social/tags/LaTeX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LaTeX</span></a> <a href="https://hep.social/tags/linter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linter</span></a> via the pre-commit framework (<a href="https://pre-commit.com" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">pre-commit.com</span><span class="invisible"></span></a>) for <a href="https://hep.social/tags/git" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>git</span></a> . But it was trivial to create a new pre-commit configuration that runs chktex, I published a WIP repo under: <a href="https://github.com/meliache/pre-commit-chktex" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/meliache/pre-commit</span><span class="invisible">-chktex</span></a>.<br>I contains two hooks: chktex-system, which uses the system executable and chktex-conda, which installs chktex via <a href="https://hep.social/tags/conda" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>conda</span></a>. Still I think probably this already exists somewhere and I just missed it. 1/N<br><a href="https://hep.social/tags/TeXLaTeX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TeXLaTeX</span></a></p>
Ratul Maharaj<p>Yesterday when hearing about the rise of malicious <a href="https://fosstodon.org/tags/pypi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pypi</span></a> packages on the <a href="https://fosstodon.org/tags/realpython" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>realpython</span></a> podcast, I had an idea for a package I’m calling`pre-pip`. </p><p>It’s a way to run some custom <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> code before a <a href="https://fosstodon.org/tags/pip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pip</span></a> command. This could potentially be used to check if a package is on a known list of bad packages before installing it or to automatically upgrade pip before a pip install. </p><p>Seems there are lots of possibilities here.</p><p><a href="https://fosstodon.org/tags/prepip" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>prepip</span></a> <a href="https://fosstodon.org/tags/fosstodon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fosstodon</span></a> <a href="https://fosstodon.org/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://fosstodon.org/tags/rich" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rich</span></a> <a href="https://fosstodon.org/tags/click" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>click</span></a> <a href="https://fosstodon.org/tags/precommit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>precommit</span></a></p>