mirror of
https://github.com/thib8956/advent-of-code.git
synced 2026-11-27 00:46:34 +00:00
fix lint
This commit is contained in:
1 parent
0232b9326d
commit
5c3fb89870
50 files changed
+97
-117
No files matched your search
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
from itertools import count, takewhile
|
||||
from itertools import takewhile
|
||||
|
||||
directions = (
|
||||
(-1, -1),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
from collections import defaultdict
|
||||
from array import array
|
||||
from collections import defaultdict
|
||||
|
||||
|
||||
def main(initial_suite, max_iteration):
|
||||
|
||||
@@ -29,9 +29,7 @@ def check_passeport(passeport, run_validators=False):
|
||||
]
|
||||
for field, validator in fields:
|
||||
value = passeport.get(field)
|
||||
if value is None:
|
||||
return False
|
||||
elif run_validators and not validator(value):
|
||||
if value is None or run_validators and not validator(value):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#! /usr/bin/env python3
|
||||
from itertools import product
|
||||
from bisect import bisect
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#! /usr/bin/env python3
|
||||
from day5 import *
|
||||
|
||||
|
||||
def tests():
|
||||
inputs = {
|
||||
"FBFBBFFRLR": (44, 5, 357),
|
||||
|
||||
Reference in new issue
Block a user