Merge pull request #2030 from pre-commit/duplicate-messages-autoupdate

remove duplicate warnings while running autoupdate
This commit is contained in:
Anthony Sottile 2021-08-30 21:49:04 -04:00 committed by GitHub
commit 3bab1514c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 17 deletions

View file

@ -3,7 +3,6 @@ import textwrap
import yaml
from pre_commit.clientlib import load_config
from pre_commit.util import yaml_load
@ -40,9 +39,6 @@ def _migrate_sha_to_rev(contents: str) -> str:
def migrate_config(config_file: str, quiet: bool = False) -> int:
# ensure that the configuration is a valid pre-commit configuration
load_config(config_file)
with open(config_file) as f:
orig_contents = contents = f.read()