diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 349fbc57..57983c81 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -44,8 +44,9 @@ jobs: # See this NumPy issue for more information: https://github.com/numpy/numpy/issues/19038 # Remove ignoring 48547 as soon as RDFLib/rdflib#1844 has been fixed and the fix # has been released. + # 70612 is a Jinja issue, can be ignored as only used in subdependencies for documentation - name: Run safety - run: pip freeze | safety check --stdin --ignore 44715 --ignore 48547 + run: pip freeze | safety check --stdin --ignore 44715 --ignore 48547 --ignore 70612 pytest-linux: runs-on: ubuntu-latest diff --git a/oteapi_dlite/strategies/generate.py b/oteapi_dlite/strategies/generate.py index cd937d3f..7bfc23b9 100644 --- a/oteapi_dlite/strategies/generate.py +++ b/oteapi_dlite/strategies/generate.py @@ -189,12 +189,11 @@ def get( # Save instance if config.location: inst.save(driver, config.location, config.options) - else: + else: # missing test if cacheconfig and cacheconfig.accessKey: key = cacheconfig.accessKey - elif "key" in session: # type: ignore + else: # missing test key = "generate_data" - cache = DataCache() with tempfile.TemporaryDirectory() as tmpdir: inst.save(driver, "{tmpdir}/data", config.options) diff --git a/requirements_dev.txt b/requirements_dev.txt index 85da87f3..9dddeefe 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,5 +1,5 @@ otelib>=0.4.0,<1 -pylint~=3.1 +pylint~=3.2 pytest~=8.2 pytest-cov~=5.0 pyyaml>=5.0