mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
Add lint environment to `deltachat-rpc-client/` and set line length to 120, same as in `python/`. Switch from flake8 to ruff. Fix ruff warnings.
20 lines
502 B
Python
20 lines
502 B
Python
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
if __name__ == "__main__":
|
|
assert len(sys.argv) == 2
|
|
workspacedir = sys.argv[1]
|
|
for relpath in os.listdir(workspacedir):
|
|
if relpath.startswith("deltachat"):
|
|
p = os.path.join(workspacedir, relpath)
|
|
subprocess.check_call(
|
|
[
|
|
"auditwheel",
|
|
"repair",
|
|
p,
|
|
"-w",
|
|
workspacedir,
|
|
],
|
|
)
|