mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 04:34:16 +00:00
Merge pull request #965 from eumiro/drop-int
Remove redundant int() conversion
This commit is contained in:
commit
f96db964c4
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ def find_large_added_files(
|
||||||
filenames_filtered &= added_files()
|
filenames_filtered &= added_files()
|
||||||
|
|
||||||
for filename in filenames_filtered:
|
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:
|
if kb > maxkb:
|
||||||
print(f'{filename} ({kb} KB) exceeds {maxkb} KB.')
|
print(f'{filename} ({kb} KB) exceeds {maxkb} KB.')
|
||||||
retv = 1
|
retv = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue