From a66eaac6b58226b6e4f879bb6bcbcbdfde9e51d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:00:11 +0000 Subject: [PATCH 1/2] Bump requests from 2.32.3 to 2.32.4 in /dev-requirements Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.32.3...v2.32.4) --- updated-dependencies: - dependency-name: requests dependency-version: 2.32.4 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- dev-requirements/dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-requirements/dev.txt b/dev-requirements/dev.txt index 28c78d5d..2939b1b5 100644 --- a/dev-requirements/dev.txt +++ b/dev-requirements/dev.txt @@ -33,7 +33,7 @@ pyparsing==3.2.1 pytest==8.3.4 pytest-cov==6.0.0 rdflib==7.1.3 -requests==2.32.3 +requests==2.32.4 six==1.17.0 snowballstemmer==2.2.0 Sphinx==7.4.7 From 04b4010e6ac3b27f231953ee87f57b25f0f75d24 Mon Sep 17 00:00:00 2001 From: Kwabena N Amponsah Date: Tue, 10 Jun 2025 12:40:37 +0100 Subject: [PATCH 2/2] Remove unused globals --- .flake8 | 1 + chaste_codegen/_rdf.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 8f8f09b4..25743729 100644 --- a/.flake8 +++ b/.flake8 @@ -9,5 +9,6 @@ ignore = # break after binary operator - allow either style exclude= .git, + build, dev-requirements, venv, diff --git a/chaste_codegen/_rdf.py b/chaste_codegen/_rdf.py index 25c99844..1c57b093 100644 --- a/chaste_codegen/_rdf.py +++ b/chaste_codegen/_rdf.py @@ -57,7 +57,6 @@ class given by ``term``, i.e. are connected to it by a path of ``rdf:type`` pred assert isinstance(term, tuple), "Expecting term to be a namespace tuple" assert isinstance(model, Model), "Expecting model to be a cellmlmanip Model" - global _ONTOLOGY _load_ontoloty() term = create_rdf_node(term) @@ -81,7 +80,6 @@ class given by ``term``, i.e. are connected to it by a path of ``rdf:type`` pred def get_MultipleUsesAllowed_tags(): global _MULTI_USES_ALLOWED_TAGS if _MULTI_USES_ALLOWED_TAGS is None: - global _ONTOLOGY _load_ontoloty() _MULTI_USES_ALLOWED_TAGS = set(str(term).replace(OXMETA, '') for term in _ONTOLOGY.subjects(rdflib.RDF.type,