Skip to content

Commit ae8c3fb

Browse files
Apply ruff rule RUF101 (#1501)
RUF101 `PGH001` is a redirect to `S307`
1 parent 6a147fc commit ae8c3fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/src/hatchling/licenses/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def normalize_license_expression(raw_license_expression: str) -> str:
5151

5252
python_expression = ' '.join(python_tokens)
5353
try:
54-
result = eval(python_expression) # noqa: PGH001, S307
54+
result = eval(python_expression) # noqa: S307
5555
except Exception: # noqa: BLE001
5656
result = True
5757

backend/src/hatchling/version/source/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_version_data(self) -> dict:
5555
sys.path[:] = old_search_paths
5656

5757
# Execute the expression to determine the version
58-
version = eval(expression, vars(module)) # noqa: PGH001, S307
58+
version = eval(expression, vars(module)) # noqa: S307
5959

6060
return {'version': version}
6161

0 commit comments

Comments
 (0)