From: Frank Brehm Date: Wed, 31 May 2023 08:24:50 +0000 (+0200) Subject: Adding and using requirements-lint.txt X-Git-Tag: 0.9.0~1^2~4 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=8dcca6d2ae3d6f18b313199dac9567ae179b3db2;p=pixelpark%2Fpp-admin-tools.git Adding and using requirements-lint.txt --- diff --git a/requirements-lint.txt b/requirements-lint.txt new file mode 100644 index 0000000..405d4a8 --- /dev/null +++ b/requirements-lint.txt @@ -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 diff --git a/update-env.sh b/update-env.sh index 47b758e..b63aa2a 100755 --- a/update-env.sh +++ b/update-env.sh @@ -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 } #------------------------------------------------------------------------------