I use the Flake8 git hook in my project, and I want to reduce the string length limit, but only for one project. Given that there is no clear API for this, how can I do this to modify this application? Also, is there a git -config parameter or environment variable that would allow me to set this? Here's the hook source code:
import os
import sys
import logging
import os.path as P
from flake8.main import git
if __name__ == '__main__':
ret = git.hook(
strict=git.config_for('strict'),
lazy=git.config_for('lazy'),
)
if ret:
sys.exit(ret)
source
share