-
-
Notifications
You must be signed in to change notification settings - Fork 898
Closed
Labels
Description
I use pre-commit to check java in windows
pre-commit run -a
get
The command line is too long.
I find xargs.py _get_platform_max_length too large size
I change it ,then can run
def _get_platform_max_length() -> int: # pragma: no cover (platform specific)
if os.name == 'posix':
maximum = os.sysconf('SC_ARG_MAX') - 2048 - _environ_size()
maximum = max(min(maximum, 2 ** 17), 2 ** 12)
return maximum
elif os.name == 'nt':
return 2 ** 13 - 2048 # UNICODE_STRING max - headroom
else:
# posix minimum
return 2 ** 12