Pre-commit: How to apply pre-commit only to master?

Created on 29 Mar 2019  路  3Comments  路  Source: pre-commit/pre-commit

Thanks for this cool tool!

I want to apply pre-commit only to master, but I don't know how to configure in .precommit-configure.yaml.

Should I git commit --no-verify in other branches?

question

All 3 comments

There's a pre-commit install --allow-missing-config option which allows feature branches to bypass until they've been updated with master

Does that satisfy your usecase?

@asottile very good, thanks!!!

perfect! thanks for the issue 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alkuzad picture alkuzad  路  4Comments

DaveParr picture DaveParr  路  4Comments

ymyke picture ymyke  路  4Comments

jacobseiler picture jacobseiler  路  4Comments

jeunii picture jeunii  路  3Comments