mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
155e461929
commit
621bf4415e
1 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ def validate_config(filenames: Sequence[str]) -> int:
|
|||
ret = 0
|
||||
|
||||
if not filenames:
|
||||
raise FileNotFoundError("No files found. Did you supply a config to validate? (E.g. pre-commit validate-config path/to/.pre-commit-config.yaml)")
|
||||
raise FileNotFoundError('No files found. Did you supply a config to validate? (E.g. pre-commit validate-config path/to/.pre-commit-config.yaml)')
|
||||
|
||||
for filename in filenames:
|
||||
try:
|
||||
|
|
@ -18,6 +18,6 @@ def validate_config(filenames: Sequence[str]) -> int:
|
|||
print(e)
|
||||
ret = 1
|
||||
if ret == 0:
|
||||
formatted_filenames = "\n".join([filename for filename in filenames])
|
||||
print(f"The following configs were validated:\n{formatted_filenames}")
|
||||
formatted_filenames = '\n'.join([filename for filename in filenames])
|
||||
print(f'The following configs were validated:\n{formatted_filenames}')
|
||||
return ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue