[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-11-09 04:08:35 +00:00
parent 4d485507f3
commit 3de0d35129

View file

@ -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(