summaryrefslogtreecommitdiff
path: root/Biz/Que/Client.py
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-08-22 11:46:08 -0400
committerBen Sima <ben@bsima.me>2023-08-22 11:46:08 -0400
commitc13e829e145daf96ea2be9b4d35fc2a94a1b33bd (patch)
treebeaec3d7c830b5c59561f1a225ea37ac1731c54e /Biz/Que/Client.py
parent9eac46cfeddc65938b3cc946629a9c3d93ac35ee (diff)
Replace pylint with ruff
Ruff is like a million times faster, and I mostly ignored pylint's suggestions anyway. I also took this opportunity to move lint tools into a runtime dependency on Lint.hs, which meant adding a wrapper to the Haskell builder, which was easy enough. This paves the way for proper rundeps in bild.
Diffstat (limited to 'Biz/Que/Client.py')
-rwxr-xr-xBiz/Que/Client.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Biz/Que/Client.py b/Biz/Que/Client.py
index 90e560f..ef6d6d2 100755
--- a/Biz/Que/Client.py
+++ b/Biz/Que/Client.py
@@ -102,10 +102,8 @@ def send(args: argparse.Namespace) -> None:
if args.serve:
logging.debug("serve")
while not time.sleep(1):
- # pylint: disable=consider-using-with
request.urlopen(req, data=data, timeout=MAX_TIMEOUT)
else:
- # pylint: disable=consider-using-with
request.urlopen(req, data=data, timeout=MAX_TIMEOUT)
@@ -198,7 +196,12 @@ def get_args() -> argparse.Namespace:
"infile",
nargs="?",
type=argparse.FileType("rb"),
- help="data to put on the que. use '-' for stdin, otherwise should be a readable file",
+ help=" ".join(
+ [
+ "data to put on the que.",
+ "use '-' for stdin, otherwise should be a readable file",
+ ]
+ ),
)
return cli.parse_args()