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

@ -48,8 +48,9 @@ def longest_subsequence(array: List[int]) -> List[int]: # This function is recu
return temp_array
else:
return longest_subseq
if __name__ == "__main__":
import doctest
doctest.testmod()

View File

@ -6,6 +6,7 @@
#############################
from typing import List
def CeilIndex(v, l, r, key):
while r - l > 1:
m = (l + r) // 2
@ -49,4 +50,5 @@ def LongestIncreasingSubsequenceLength(v: List[int]) -> int:
if __name__ == "__main__":
import doctest
doctest.testmod()

View File

@ -75,6 +75,7 @@ if __name__ == "__main__":
import time
import matplotlib.pyplot as plt
from random import randint
inputs = [10, 100, 1000, 10000, 50000, 100000, 200000, 300000, 400000, 500000]
tim = []
for i in inputs: