summaryrefslogtreecommitdiff
path: root/Biz/Lint.py
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-12-04 11:16:25 -0500
committerBen Sima <ben@bsima.me>2020-12-05 07:55:13 -0500
commit330e4363d8abb509031d2c8c1a89dcc6f955e2c1 (patch)
tree915c8c50a7125bf6eb9e560f8d00a80592f41c77 /Biz/Lint.py
parent32f53350a3a3d701e9a1474e670a8454342adc40 (diff)
Renamespace Devalloc and Que
Move them under the Biz root so that we know they are specific to Biz stuff. Biz is for proprietary stuff that we own. I also had to refactor the bild namespace parsing code because it couldn't handle a namespace with 3 parts. I really need to get that namespace library written and tested.
Diffstat (limited to 'Biz/Lint.py')
-rwxr-xr-xBiz/Lint.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Biz/Lint.py b/Biz/Lint.py
index fccda57..fc035cb 100755
--- a/Biz/Lint.py
+++ b/Biz/Lint.py
@@ -26,7 +26,7 @@ def run(cmd, file):
"ormolu": ["--mode", "check"],
"hlint": [],
"black": ["--quiet", "--check"],
- "pylint": [],
+ "pylint": ["--disable=invalid-name"],
}
# pylint: disable=subprocess-run-check
ret = subprocess.run([cmd, *args[cmd], file], stdout=subprocess.PIPE)
@@ -69,6 +69,8 @@ def group_files(files, extensions):
def guard_todos(files):
+ "Fail if TODO found in text"
+ global ERRORS # pylint: disable=global-statement
for fname in files:
with open(fname) as text:
if "TODO" in text.read():
@@ -92,6 +94,7 @@ if __name__ == "__main__":
run("hlint", hs)
for py in FILES[".py"]:
print(f"lint: {py}")
- run("black", py)
+ # Broken in our nixpkgs
+ # run("black", py)
run("pylint", py)
sys.exit(ERRORS)