Skip to content

Deny import paths that allow code execution when given as values - #959

Merged
mauvilsa merged 2 commits into
mainfrom
import-path-denylist
Aug 21, 2026
Merged

Deny import paths that allow code execution when given as values#959
mauvilsa merged 2 commits into
mainfrom
import-path-denylist

Fix windows tests and uncaught warnings

9be964e
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Aug 21, 2026 in 42s

Annotations

Check warning on line 468 in jsonargparse/_common.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaAkczxq0VcEImD985Dh&open=AaAkczxq0VcEImD985Dh&pullRequest=959

Check failure on line 264 in jsonargparse/_common.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaAkczxq0VcEImD985Dg&open=AaAkczxq0VcEImD985Dg&pullRequest=959

Check warning on line 26 in jsonargparse_tests/test_import_paths.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless "yield".

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaAkcz660VcEImD985Dj&open=AaAkcz660VcEImD985Dj&pullRequest=959

Check failure on line 284 in jsonargparse/_actions.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaAkcz3m0VcEImD985Di&open=AaAkcz3m0VcEImD985Di&pullRequest=959

Check warning on line 254 in jsonargparse/_common.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace with dict fromkeys method call

See more on https://sonarcloud.io/project/issues?id=mauvilsa_jsonargparse&issues=AaAkczxq0VcEImD985Df&open=AaAkczxq0VcEImD985Df&pullRequest=959