mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: This PR bypasses checking the user's configuration entirely and always use strict, since the CI considers it a hard failure if you can't pass flake8. Pull Request resolved: https://github.com/pytorch/pytorch/pull/15693 Differential Revision: D13574889 Pulled By: suo fbshipit-source-id: f5e1c5731cc49b6223b415317033c275bc7d4fec
12 lines
182 B
Python
Executable File
12 lines
182 B
Python
Executable File
import sys
|
|
|
|
from flake8.main import git
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(
|
|
git.hook(
|
|
strict=True,
|
|
lazy=git.config_for('lazy'),
|
|
)
|
|
)
|