summaryrefslogtreecommitdiffstats
path: root/pre_commit_hooks/check_added_large_files.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-16 11:18:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-16 11:18:13 +0000
commit535187ceaf88786aaf22560790564f1f6965ba30 (patch)
tree82456c5d0bc77961759812ddd85414435ba89127 /pre_commit_hooks/check_added_large_files.py
parentAdding upstream version 4.4.0+dfsg. (diff)
downloadpre-commit-hooks-2d21e3373e8f3a54d039edf15b68580041f810a5.tar.xz
pre-commit-hooks-2d21e3373e8f3a54d039edf15b68580041f810a5.zip
Adding upstream version 4.5.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit_hooks/check_added_large_files.py')
-rw-r--r--pre_commit_hooks/check_added_large_files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre_commit_hooks/check_added_large_files.py b/pre_commit_hooks/check_added_large_files.py
index 79c8d4e..9e0619b 100644
--- a/pre_commit_hooks/check_added_large_files.py
+++ b/pre_commit_hooks/check_added_large_files.py
@@ -46,7 +46,7 @@ def find_large_added_files(
filenames_filtered &= added_files()
for filename in filenames_filtered:
- kb = int(math.ceil(os.stat(filename).st_size / 1024))
+ kb = math.ceil(os.stat(filename).st_size / 1024)
if kb > maxkb:
print(f'{filename} ({kb} KB) exceeds {maxkb} KB.')
retv = 1