-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible-lint: Update to 25.1.1 and update python default to 3.13
- Update to 25.1.1 - Change default python to 3.13 - Additionally correct the logic for a wanring message where an empty PYENV_VIRTUAL_ENV system variable trips incorrectly update ansible-lint
- Loading branch information
Showing
2 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
sysutils/ansible-lint/files/patch-disable_path_warning.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- ./src/ansiblelint/__main__.py.orig 2025-01-30 06:43:48 | ||
+++ ./src/ansiblelint/__main__.py 2025-01-30 19:02:17 | ||
@@ -456,7 +456,7 @@ | ||
if (parent / "ansible").exists() and str(parent) not in paths: | ||
inject_paths.append(str(parent)) | ||
|
||
- if not os.environ.get("PYENV_VIRTUAL_ENV", None): | ||
+ if not os.environ.get("PYENV_VIRTUAL_ENV","NONE"): | ||
if inject_paths and not all("pipx" in p for p in inject_paths): | ||
print( # noqa: T201 | ||
f"WARNING: PATH altered to include {', '.join(inject_paths)} :: This is usually a sign of broken local setup, which can cause unexpected behaviors.", |