• FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      9 months ago

      Yeah I think that’s what he meant. You don’t want CI editing commits.

      I use pre-commit for this. It’s pretty decent. The major flaws I’ve found with it:

      • Each linter has to be in its own repo (for most linter types). So it’s not really usable for project-specific lints.

      • Doesn’t really work with e.g. pyright or pylint unless you use no third party dependencies because you need a venv set up with your dependencies installed and pre-commit (fairly reasonably) doesn’t take care of that.

      Overall it’s good, with some flaws, but there’s nothing better available so you should definitely use it.