-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
By default, pre-commit gives only the staged files to each pre-commit command.
However, in Sicarator, we do the following:
- id: type-check
name: Type checking (mypy)
entry: make type-check
pass_filenames: false
language: system
types: [python]
stages: [commit]with make type-check as
type-check:
poetry run mypy srcWe could do something like this to run mypy only on staged files:
- id: type-check
name: Type checking (mypy)
entry: mypy
language: system
types: [python]
stages: [commit]@ywolff What do you think ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation