33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 024867b927d760e4ae4cce88c8415ce1f8dddab2 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
|
|
<jan.christian@gruenhage.xyz>
|
|
Date: Fri, 20 Jan 2023 12:31:41 +0100
|
|
Subject: [PATCH] remove update check, only makes sense when installing with
|
|
pip
|
|
|
|
---
|
|
src/ansiblelint/app.py | 7 -------
|
|
1 file changed, 7 deletions(-)
|
|
|
|
diff --git a/src/ansiblelint/app.py b/src/ansiblelint/app.py
|
|
index 40423c64..e5dff508 100644
|
|
--- a/src/ansiblelint/app.py
|
|
+++ b/src/ansiblelint/app.py
|
|
@@ -291,13 +291,6 @@ warn_list: # or 'skip_list' to silence them completely
|
|
msg += f", and fixed {summary.fixed} issue(s)"
|
|
msg += f" on {files_count} files."
|
|
|
|
- # on offline mode and when run under pre-commit we do not want to
|
|
- # check for updates.
|
|
- if not self.options.offline and os.environ.get("PRE_COMMIT", "0") != "1":
|
|
- version_warning = get_version_warning()
|
|
- if version_warning:
|
|
- msg += f"\n{version_warning}"
|
|
-
|
|
console_stderr.print(msg)
|
|
|
|
|
|
--
|
|
2.39.1
|
|
|