From fc6b0feb97e2b58d036f9e324c0b76633ac271bf Mon Sep 17 00:00:00 2001 From: Ron Erez Date: Mon, 15 Sep 2025 15:17:07 +0300 Subject: [PATCH 1/2] Fix CI/CD infrastructure: Replace platform-specific mkdir with universal Python command - Replace deprecated tox platform syntax (broken in tox 4.17.0+) - Use universal Python command for reports directory creation - Ensures compatibility with Docker and GitHub Actions environments - Resolves 'JUnitXML: Parent folder does not exist' error --- tox.ini | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index f7eaf048..8e6f0d72 100644 --- a/tox.ini +++ b/tox.ini @@ -39,9 +39,7 @@ deps= allowlist_externals= mkdir commands= - linux: mkdir -p reports - macos: mkdir -p reports - win: mkdir reports + python -c "import os; os.makedirs('reports', exist_ok=True)" nose2 --config=tests/ut/nose2.cfg --verbose --project-directory . {posargs} coverage html --fail-under=75 -d reports/coverage From a08b8cbece483664a4ab3a809c21b21cb5bdeddf Mon Sep 17 00:00:00 2001 From: Ron Erez Date: Mon, 15 Sep 2025 15:24:49 +0300 Subject: [PATCH 2/2] Fix flake8 whitespace warning in SNMP docstring - Remove trailing whitespace from blank line in get_configuration() docstring - Resolves W293 blank line contains whitespace warning --- cterasdk/edge/snmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cterasdk/edge/snmp.py b/cterasdk/edge/snmp.py index ada409b4..f8300f41 100644 --- a/cterasdk/edge/snmp.py +++ b/cterasdk/edge/snmp.py @@ -56,7 +56,7 @@ def disable(self): def get_configuration(self): """ Get current SNMP configuration - + :return: Current SNMP configuration :rtype: cterasdk.common.object.Object """