From 9da4feb106126940264dd27925ea3c19b04aac20 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 30 Dec 2020 12:24:47 -0500 Subject: bild: build everyting Now bild knows how to determine between modules that require ghcjs and ghc. It also knows what *not* to build, meaning it won't try to build non-buildable nix targets, for example (unfortunately this is just hardcoded for now), but it also won't build scm or py targets that I haven't implemented yet. It just silently fails, which is fine, because it means I can do `bild **/*` and everything just works. Of course, if I want to build scm code then I will have to implement that, but that's not a priority right now. --- Biz/Lint.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Biz/Lint.py') diff --git a/Biz/Lint.py b/Biz/Lint.py index fc035cb..c3e51df 100755 --- a/Biz/Lint.py +++ b/Biz/Lint.py @@ -89,12 +89,20 @@ if __name__ == "__main__": else: FILES = group_files(sys.argv[1:], [".hs", ".py"]) for hs in FILES[".hs"]: + if not os.path.exists(hs): + print("lint: does not exist:", hs) + continue print(f"lint: {hs}") run("ormolu", hs) run("hlint", hs) for py in FILES[".py"]: + if not os.path.exists(py): + print("lint: does not exist:", py) + continue print(f"lint: {py}") # Broken in our nixpkgs # run("black", py) run("pylint", py) + if ERRORS: + print("lint: errors:", ERRORS) sys.exit(ERRORS) -- cgit v1.2.3