You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I've boiled this down to the following for openzim/devdocs, however I'm not a pre-commit or Python tooling expert so there might be missing bits:
# See https://pre-commit.com for more information# See https://pre-commit.com/hooks.html for more hooksrepos:
- repo: https://github.com/pre-commit/pre-commit-hooksrev: v4.5.0hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: localhooks:
- id: "lint"name: "hatch run lint:all"entry: hatchlanguage: systemargs: ["run", "lint:all"]require_serial: truepass_filenames: false
- id: "pyright"name: "pyright (hatch)"description: 'pyright static type checker'entry: hatchlanguage: system'types_or': [python, pyi]args: ["run", "check:pyright"]require_serial: truepass_filenames: false
Thank you. Doesn't this means that tools are ran on all files instead of only modified ones? This would be a bit sad. Using repo: local is anyway an interesting path to follow.
See openzim/devdocs#37 (comment)
The text was updated successfully, but these errors were encountered: