From 3de0d351290daf0911d672b918414e139c98822e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 04:08:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit/meta_hooks/check_hooks_apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/meta_hooks/check_hooks_apply.py b/pre_commit/meta_hooks/check_hooks_apply.py index 52683196..80068c29 100644 --- a/pre_commit/meta_hooks/check_hooks_apply.py +++ b/pre_commit/meta_hooks/check_hooks_apply.py @@ -17,7 +17,7 @@ def check_all_hooks_match_files(config_file: str) -> int: exclude_file_path = config['exclude_file_path'] if exclude_file_path is not None: if os.path.isfile(exclude_file_path): - with open(exclude_file_path, 'r') as f: + with open(exclude_file_path) as f: config['exclude'] = f.read().splitlines() classifier = Classifier.from_config(