ci(lint): configure flake8 excludes/line-length; fix F541 and F401 in tests
Some checks failed
CI / Lint, test, and build (push) Failing after 39s

This commit is contained in:
ngxstat-bot 2025-08-16 05:14:01 -05:00
commit 979fbb0e64
3 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import sys
from pathlib import Path
import pytest
import pytest # noqa: F401
REPO_ROOT = Path(__file__).resolve().parents[1]
sys.path.append(str(REPO_ROOT))

View file

@ -16,7 +16,7 @@ def test_script_invokes_commands(tmp_path):
python_stub = tmp_path / "python"
python_stub.write_text(f'#!/usr/bin/env bash\necho "$*" >> "{calls}"\n')
python_stub.chmod(0o755)
(tmp_path / "python3").write_text(f"#!/usr/bin/env bash\nexit 0\n")
(tmp_path / "python3").write_text("#!/usr/bin/env bash\nexit 0\n")
(tmp_path / "python3").chmod(0o755)
env = os.environ.copy()