added linter
This commit is contained in:
parent
011fea37a0
commit
96e9f26fd0
15
lint.py
Executable file
15
lint.py
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
status = os.system("flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics")
|
||||
if os.WEXITSTATUS(status) != 0:
|
||||
print("Flake8 linter errors")
|
||||
sys.exit(0)
|
||||
os.system("flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Reference in New Issue
Block a user