diff options
author | Ben Sima <ben@bsima.me> | 2023-08-22 11:46:08 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-08-22 11:46:08 -0400 |
commit | c13e829e145daf96ea2be9b4d35fc2a94a1b33bd (patch) | |
tree | beaec3d7c830b5c59561f1a225ea37ac1731c54e /Biz/Que | |
parent | 9eac46cfeddc65938b3cc946629a9c3d93ac35ee (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')
-rwxr-xr-x | Biz/Que/Client.py | 9 |
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() |