From: Guus Sliepen Date: Fri, 3 Apr 2026 18:50:59 +0000 (+0200) Subject: Stop pylint from complaining about import order X-Git-Url: https://www.tinc-vpn.org/git/?a=commitdiff_plain;h=c31540fd766a749abe9138d3c9de990d4e028a94;p=tinc Stop pylint from complaining about import order Unfortunately, the multiprocessing library conflicts with something in tinc's test library. Reordering imports fixes this, but pylint doesn't like it. For now just disable pylint in favor of a working test suite. --- diff --git a/lint.py b/lint.py index d1cb2455..9905e394 100755 --- a/lint.py +++ b/lint.py @@ -36,7 +36,7 @@ linters = ( ], ["shfmt", "-d" if DRY else "-w", "-i", "2", "-s", "."], ["black", "--check" if DRY else ".", "."], - ["pylint", "."], + ["pylint", "--disable", "wrong-import-order,unused-import", "."], ["mypy", "--exclude", "build", "."], ["shellcheck", "-x", *glob(".ci/**/*.sh", recursive=True)], ["markflow", "--line-length", "80", "--check" if DRY else "--verbose", ".", ".ci"], diff --git a/test/integration/commandline.py b/test/integration/commandline.py index 21972eaf..d76dfbe7 100755 --- a/test/integration/commandline.py +++ b/test/integration/commandline.py @@ -15,6 +15,8 @@ import subprocess as subp import tempfile import time +COOKIE = util.random_string(10) + def init(ctx: Test) -> Tinc: """Initialize new test nodes.""" @@ -50,13 +52,12 @@ with Test("commandline flags") as context: ) for code, flags in tincd_flags: - cookie = util.random_string(10) - server = node.tincd(*flags, env={"COOKIE": cookie}) + server = node.tincd(*flags, env={"COOKIE": COOKIE}) if not code: log.info("waiting for tincd to come up") env = node[Script.TINC_UP].wait().env - check.equals(cookie, env["COOKIE"]) + check.equals(COOKIE, env["COOKIE"]) log.info("stopping tinc") node.cmd("stop", code=code)