pre-commit hook
.pre-commit-config.yaml
repos:
    - repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror
      rev: v1.13.0 # or whatever the latest version is at the time
      hooks:
          - id: basedpyright
Warning
pre-commit is not recommended. for more information, see here