pre-commit-ci / issues

public issues for https://pre-commit.ci
17 stars 4 forks source link

Clarify if all files run in CI #194

Closed tofu-rocketry closed 1 year ago

tofu-rocketry commented 1 year ago

Could you note in the documentation if the CI checks run on all files or just changed ones please?

The run section of the CI doesn't show what command is being run to invoke the checks and I've not found anything definitive elsewhere.

asottile commented 1 year ago

it's pre-commit run --all-files -- don't think this really needs documenting because it can't be anything else if it's a gating mechanism

tofu-rocketry commented 1 year ago

That's what I assumed, but wasn't completely certain. For Pull Requests, there are other tools that will only look at touched files, which usually provides sufficient gating, so I don't understand that point. Is it really not worth one line in the docs?

asottile commented 1 year ago

there are many things which fail without the file touched (check-symlinks, mypy, etc.)

tofu-rocketry commented 1 year ago

If you don't think it's worth being explicit, then that's up to you, but as a user, I like to be reassured of how services are actually working. What's obvious to you isn't going to be obvious to all your users.