Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyan99 committed Nov 12, 2024
1 parent ec7e53c commit 37c2b5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/azure-sdk-tools/ci_tools/environment_exclusions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
"azure-template",
]

MUST_RUN_ENVS = [
"bandit"
]

def is_check_enabled(package_path: str, check: str, default: Any = True) -> bool:
"""
Expand Down Expand Up @@ -78,7 +81,7 @@ def filter_tox_environment_string(namespace_argument: str, package_path: str) ->
filtered_set = []

for tox_env in [env.strip().lower() for env in tox_envs]:
if is_check_enabled(package_path, tox_env, True):
if is_check_enabled(package_path, tox_env, True) or tox_env in MUST_RUN_ENVS:
filtered_set.append(tox_env)
return ",".join(filtered_set)

Expand Down

0 comments on commit 37c2b5c

Please sign in to comment.