We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b0bd71 + 749e1a9 commit 289f8b4Copy full SHA for 289f8b4
1 file changed
pre_commit_hooks/check_fixed_library_versions.py
@@ -24,13 +24,15 @@ def check_file(filename):
24
non_fixed_library_versions = added_libraries - fixed_version_libraries
25
26
if len(non_fixed_library_versions) == 1:
27
- raise PreCommitException(
28
- f"Library version of {list(non_fixed_library_versions)[0]} is not fixed!"
29
- )
+ raise PreCommitException((
+ f"Library version of {list(non_fixed_library_versions)[0]} is "
+ f"not fixed! File parsed: {filename}"
30
+ ))
31
elif len(non_fixed_library_versions) > 1:
32
- f"Library version of {', '.join(non_fixed_library_versions)} are not fixed!"
33
+ f"Library version of {', '.join(non_fixed_library_versions)} "
34
+ f"are not fixed! File parsed: {filename}"
35
36
37
38
def main(args=None):
0 commit comments