From 59d5e2676aae5b7ad564412eb5dc83a464bb24ea Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 14 Nov 2022 11:51:05 +0000 Subject: [PATCH] requirements: Updated to pass 'safety' checks * We do need to specify `wheel` version. * We need to specify `webtest`, as at least one test uses it. * Bumped the version of some modules as per `safety` report. --- .pre-commit-config.yaml | 4 +++- requirements-dev.txt | 5 +++-- requirements.txt | 3 +-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 667c927..aed87c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -73,9 +73,11 @@ repos: rev: 'v1.2.4' hooks: - id: python-safety-dependencies-check + name: safety entry: safety - args: [check, --bare, -r] + args: [check, --bare, --file ] language: system + files: requirements-dev.txt default_language_version: python: python3.9 diff --git a/requirements-dev.txt b/requirements-dev.txt index 8ee9999..1254ecb 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,6 @@ # So that you don't get warnings like: # Using legacy 'setup.py install' for flake8-annotations-coverage, since package 'wheel' is not installed. -wheel +wheel==0.38.0 # Code formatting black==22.1.0 @@ -16,7 +16,7 @@ flake8-noqa==1.2.0 flake8-use-fstring==1.3 mypy==0.910 pep8-naming==0.12.1 -safety==1.10.3 +safety==2.2.0 types-pkg_resources==0.1.3 types-requests==2.25.11 types-simplejson==3.17.1 @@ -27,6 +27,7 @@ autopep8==1.6.0 # Testing pytest-cov==3.0.0 # Pytest code coverage support # coverage[toml]==6.1.1 # pytest-cov dep. This is here to ensure that it includes TOML support for pyproject.toml configs +webtest==3.0.0 # All of the normal requirements -r requirements.txt diff --git a/requirements.txt b/requirements.txt index 620340e..0f1de27 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ # Versions known to work under Python 3.9.2 on Debian bullseye # Fri 18 Mar 12:01:52 GMT 2022 -argparse # Just take the 'system' version -bottle==0.12.19 +bottle==0.12.20 enum34==1.1.10 gevent==21.12.0 jsonschema==4.4.0