Since black is in your .pre-commit-config.yaml, having extra formatting tests is redundant + you would have to manage its version in two more places.
As for running pre-commit run -a locally, this will be done on staged files by the installed hook.
On the CIs 'Pre-commit' job all files will be tested and since it utilizes caching the tests should overall finish faster.
Motivation and Context
Failing CI tests du to check with an older version of black see #54
Removing the CI restriction on push, to only run on master, would allow contributors to see the CI results on their forks feature branch before submitting a PR.
Description
Since
black
is in your.pre-commit-config.yaml
, having extra formatting tests is redundant + you would have to manage its version in two more places. As for runningpre-commit run -a
locally, this will be done on staged files by the installed hook. On the CIs 'Pre-commit' job all files will be tested and since it utilizes caching the tests should overall finish faster.Motivation and Context
Failing CI tests du to check with an older version of
black
see #54