• zalgotext@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Sounds like you’re just googling it rather than actually speaking from experience.

    Like I said, I’ve used pre-commit for multiple years now. If you can run your lints from a command line, you can configure pre-commit to run them.

    The project I’m working on has multiple sub-projects and those each have their own venvs, pyproject.tomls, etc.

    Monorepos definitely make things a bit trickier, but again, you absolutely can write a local pre-commit hook that runs a bash command or script that 1.) activates the necessary venv and 2.) runs the lint command. I know this because I’ve done it, multiple times.