diff --git a/backend/src/hatchling/licenses/parse.py b/backend/src/hatchling/licenses/parse.py index 29be5a458..8597655c6 100644 --- a/backend/src/hatchling/licenses/parse.py +++ b/backend/src/hatchling/licenses/parse.py @@ -51,7 +51,7 @@ def normalize_license_expression(raw_license_expression: str) -> str: python_expression = ' '.join(python_tokens) try: - result = eval(python_expression) # noqa: PGH001, S307 + result = eval(python_expression) # noqa: S307 except Exception: # noqa: BLE001 result = True diff --git a/backend/src/hatchling/version/source/code.py b/backend/src/hatchling/version/source/code.py index e11a05fc6..9433a0c2d 100644 --- a/backend/src/hatchling/version/source/code.py +++ b/backend/src/hatchling/version/source/code.py @@ -55,7 +55,7 @@ def get_version_data(self) -> dict: sys.path[:] = old_search_paths # Execute the expression to determine the version - version = eval(expression, vars(module)) # noqa: PGH001, S307 + version = eval(expression, vars(module)) # noqa: S307 return {'version': version}