2019-01-24 09:43:22 +00:00
|
|
|
import logging
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.Logger(__file__)
|
|
|
|
|
|
|
|
|
2019-01-24 10:25:48 +00:00
|
|
|
def format_black():
|
|
|
|
subprocess.check_call(["python", "-m", "black", "."])
|
2019-01-24 09:43:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2019-01-24 10:25:48 +00:00
|
|
|
if not format_black():
|
2019-01-24 09:43:22 +00:00
|
|
|
exit(1)
|
|
|
|
exit(0)
|