File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 3333
3434LANGUAGES = {
3535 "Python" : "{year}/day{day}/day{day}.py" ,
36- # "PyPy": "{year}/day{day}/day{day}.py",
36+ "PyPy" : "{year}/day{day}/day{day}.py" ,
3737 "Rust" : "{year}/target/release/day{day}" ,
3838 "C" : "{year}/build/day{day}_c" ,
3939 "C++" : "{year}/build/day{day}_cpp" ,
4040}
4141
42+ DEFAULT_LANGUAGES = {"Python" , "Rust" }
43+
4244INTERPRETERS = {
4345 "Python" : "python3" ,
4446 "PyPy" : "pypy3" ,
@@ -258,7 +260,12 @@ def run_day(
258260 results = set ()
259261
260262 for lang , pattern in LANGUAGES .items ():
261- if filter_lang and lang .lower () != filter_lang .lower ():
263+ if filter_lang == "all" :
264+ pass
265+ elif filter_lang :
266+ if lang .lower () != filter_lang .lower ():
267+ continue
268+ elif lang not in DEFAULT_LANGUAGES :
262269 continue
263270
264271 prog = Path (pattern .format (year = year , day = mday ))
You can’t perform that action at this time.
0 commit comments