competition update
This commit is contained in:
13
language_model/tools/flake8_hook.py
Executable file
13
language_model/tools/flake8_hook.py
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
# encoding: utf-8
|
||||
import sys
|
||||
|
||||
from flake8.main import git
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
git.hook(
|
||||
strict=True,
|
||||
lazy=git.config_for('lazy'),
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user