From 8dcca6d2ae3d6f18b313199dac9567ae179b3db2 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 31 May 2023 10:24:50 +0200 Subject: [PATCH] Adding and using requirements-lint.txt --- requirements-lint.txt | 10 ++++++++++ update-env.sh | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 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 } #------------------------------------------------------------------------------ -- 2.39.5