My Advent of Code solutions in Python. kevinyap.ca/2019/12/going-fast-in-advent-of-code/
advent-of-code python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Skip invalid files in test runner

+4 -1
+4 -1
advent.py
··· 102 102 to_run = [] 103 103 104 104 for program in sorted(programs): 105 - day = int(re.findall(r'(\d+).py', program)[0]) 105 + try: 106 + day = int(re.findall(r'(\d+).py', program)[0]) 107 + except IndexError: 108 + continue 106 109 input_file = '%s/inputs/%02i.txt' % (year, day) 107 110 output_file = '%s/outputs/%02i.txt' % (year, day) 108 111