eive-tmtc/lint.py

16 lines
386 B
Python
Raw Normal View History

2021-06-30 11:18:57 +02:00
#!/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()