Files
pytorch/tools/flake8_hook.py
Hong Xu da4f3629c5 Add missing shebangs to Python files with executable permissions.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/21305

Differential Revision: D15613078

Pulled By: ezyang

fbshipit-source-id: 1fedf4368d65db406b617a51402ee8a20968aff7
2019-06-06 10:53:40 -07:00

14 lines
205 B
Python
Executable File

#!/usr/bin/env python
import sys
from flake8.main import git
if __name__ == '__main__':
sys.exit(
git.hook(
strict=True,
lazy=git.config_for('lazy'),
)
)