]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding and using requirements-lint.txt
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 31 May 2023 08:24:50 +0000 (10:24 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 31 May 2023 08:24:50 +0000 (10:24 +0200)
requirements-lint.txt [new file with mode: 0644]
update-env.sh

diff --git a/requirements-lint.txt b/requirements-lint.txt
new file mode 100644 (file)
index 0000000..405d4a8
--- /dev/null
@@ -0,0 +1,10 @@
+pylint
+flake8
+flake8-blind-except
+flake8-builtins
+flake8-class-newline
+flake8-comprehensions
+flake8-deprecated
+flake8-docstrings
+flake8-import-order
+flake8-quotes
index 47b758e2592ddbb0797b36fb8ad17e9c32d5fb63..b63aa2a39bdde4333f024130d2711510a3e8fa95 100755 (executable)
@@ -329,6 +329,12 @@ upgrade_modules() {
     empty_line
     pip install ${PIP_OPTIONS} --upgrade --upgrade-strategy eager --requirement requirements.txt
     empty_line
+    if [[ -f requirements-lint.txt ]] ; then
+        info "Installing and/or upgrading necessary modules for linting …"
+        empty_line
+        pip install ${PIP_OPTIONS} --upgrade --upgrade-strategy eager --requirement requirements-lint.txt
+        empty_line
+    fi
 }
 
 #------------------------------------------------------------------------------