DEV Community

[Comment from a deleted post]
Collapse
 
michaelcurrin profile image
Michael Currin • Edited

It is also worth mentioning when possibly not to use an action to handle linting.

I prefer to have linting in my Makefile so I can run commands locally and in my workflow, both using make.

github.com/MichaelCurrin/py-projec...

I do also have a flake8 config and dev requirements file, which I have to repeat in each project as a bit of boilerplate but I can easily make project-specific changes.

But... if I moved all that logic to an action file, it stops me from running my linting locally. And I like the fast turn around of local linting. Including as a pre push git hook, so that I am stopped from pushing commits that fail local checks and therefore would fail on Actions and I might only notice the next day

Maybe the middle ground is if I can run a way to run an action like yours locally. If your action is setup as a Docker container, then I can run it locally as a binary. And it will have its dependencies sandboxed so it would conflict with my project packages