GitHub Action formats our code with psf/black (#1569)

* GitHub Action formats our code with psf/black

@poyea Your review please.

* fixup! Format Python code with psf/black push
This commit is contained in:
Christian Clauss
2019-11-14 19:59:43 +01:00
committed by GitHub
parent 52cf668617
commit 5df8aec66c
25 changed files with 523 additions and 400 deletions

View File

@ -14,15 +14,13 @@ import os
from math import log10
def find_largest(data_file: str="base_exp.txt") -> int:
def find_largest(data_file: str = "base_exp.txt") -> int:
"""
>>> find_largest()
709
"""
largest = [0, 0]
for i, line in enumerate(
open(os.path.join(os.path.dirname(__file__), data_file))
):
for i, line in enumerate(open(os.path.join(os.path.dirname(__file__), data_file))):
a, x = list(map(int, line.split(",")))
if x * log10(a) > largest[0]:
largest = [x * log10(a), i + 1]