1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-16 22:47:38 +00:00

Runnable examples (#576)

Provides a basic interface for running examples on tweaked.cc. This is probably
janky as anything, but it works on my machine.

This is the culmination of 18 months of me building far too much infrastructure
(copy-cat, illuaminate), so that's nice I guess.

I should probably get out more.
This commit is contained in:
Jonathan Coates
2020-11-12 19:01:50 +00:00
committed by GitHub
parent c8aeddedd4
commit a4c9e89370
18 changed files with 639 additions and 40 deletions

View File

@@ -18,7 +18,7 @@ for path in pathlib.Path("src").glob("**/*"):
if line.strip() == "":
print("%s has empty first line" % path)
if len(line) >= 2 and line[-2] == "\r" and line[-1] == "\n" and not has_line:
if len(line) >= 2 and line[-2] == "\r" and line[-1] == "\n" and not has_dos:
print("%s has contains '\\r\\n' on line %d" % (path, i + 1))
problems = has_dos = True