Q: Pylint used as pre-commit hook not accepting --fail-under flag I have a pre-commit set up on a python repo. I have a .pre-commit-config.yaml file where I specify my pylint settings/arguments. Previously my pylint hook worked.
Pylint config in .pre-commit-config.yaml:
  - repo: local
    hooks:
     - id: pylint
       name: pylint
       entry: pylint
       language: system
       types: [python]
       args:
        [
          "-rn",
          "--rcfile=./polestar.rc",
          "--fail-under=6"
        ]

This config previously worked. Now I get the following error.
pylint: error: no such option: --fail-under

I can't think of anything that has changed to cause this issue.
Any advice would be great or suggestions as to what could fix it.

A: Found issue: the python environment I was in had a old version of pylint installed. I updated the pylint version to latest and the option to set --fail-under became available again.
