diff --git a/template/__init__.py b/template/__init__.py index 84cccc7cb8112112b06f99fd1d7610f5a440f3b8..8232865ae7886b5e10a898f978df3e32687a2827 100644 --- a/template/__init__.py +++ b/template/__init__.py @@ -18,7 +18,7 @@ import template.filters # I ignore import errors here and fail on them later in the main function so # the module can be imported by the setup.py with jinja missing so the # docstring can be used as the package description. -try: +try: # nosemgrep: rules.bandit.B110 from jinja2 import Environment except ImportError: pass diff --git a/template/filters.py b/template/filters.py index 93bd67629ca876acf34d81872a25328eab5a5f74..085cf6fec5188e44b6074c83593fb56f02116134 100644 --- a/template/filters.py +++ b/template/filters.py @@ -162,7 +162,7 @@ def run(*argv, **kwargs): if sys.version_info[0] < 3: # nosec import subprocess32 as subprocess else: - import subprocess + import subprocess # nosemgrep: rules.bandit.B40 defaults = {"stdout": subprocess.PIPE, "stderr": subprocess.PIPE} defaults.update(kwargs)