Skip to content

Commit 7b0abe5

Browse files
authored
Merge branch 'develop' into fix/list-utils-falsy-handling
2 parents 9010a77 + 07f9737 commit 7b0abe5

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
# Initializes the CodeQL tools for scanning.
6565
- name: Initialize CodeQL
66-
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
66+
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
6767
with:
6868
languages: ${{ matrix.language }}
6969
build-mode: ${{ matrix.build-mode }}
@@ -91,6 +91,6 @@ jobs:
9191
exit 1
9292
9393
- name: Perform CodeQL Analysis
94-
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
94+
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
9595
with:
9696
category: "/language:${{matrix.language}}"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ submodules: ## Initialize git submodules (nist-content, oscal)
3939
git submodule update --init
4040

4141
develop: submodules ## Set up development environment
42-
pip install hatch "virtualenv>=20.26.6,<21" # Pin until hatch supports virtualenv 21.x
42+
pip install hatch
4343
pip install -e .[dev]
4444

4545
pre-commit: ## Install pre-commit hooks

pyproject.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,6 @@ packages = ["trestle"]
113113
[tool.hatch.envs.default]
114114
dependencies = [
115115
"coverage[toml]~=7.4",
116-
"virtualenv>=20.26.6,<21", # Pin until hatch supports virtualenv 21.x
117-
]
118-
119-
# Constrains the internal environment hatch uses to run build hooks.
120-
# Without this, hatch resolves the latest virtualenv (21.x+) which breaks
121-
# the hatch-build env due to removed `propose_interpreters` API.
122-
[tool.hatch.envs.hatch-build]
123-
dependencies = [
124-
"virtualenv>=20.26.6,<21", # Pin until hatch supports virtualenv 21.x
125116
]
126117

127118
[tool.hatch.envs.hatch-test]
@@ -134,7 +125,6 @@ dependencies = [
134125
"pytest-xdist[psutil]>=3.5",
135126
"pytest-randomly>=3.15",
136127
"mypy",
137-
"virtualenv>=20.26.6,<21", # Pin until hatch supports virtualenv 21.x
138128
]
139129

140130
[[tool.hatch.envs.hatch-test.matrix]]

trestle/core/commands/task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def _run(self, args: argparse.Namespace) -> int:
8181

8282
# permit ${name} in config definitions
8383
global_config = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
84-
global_config.read_file(config_path.open('r', encoding=const.FILE_ENCODING))
84+
with config_path.open('r', encoding=const.FILE_ENCODING) as f:
85+
global_config.read_file(f)
8586
# run setup
8687
task_index = self._build_task_index()
8788

trestle/core/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ def import_model(
238238
errmsg = f'Validation of model {name} did not pass'
239239
logger.error(errmsg)
240240
except Exception as err:
241-
logger.error(errmsg)
242241
errmsg = f'Import of model {name} failed. Validation failed with error: {err}'
242+
logger.error(errmsg)
243243

244244
if not success:
245245
# rollback in case of validation error or failure

0 commit comments

Comments
 (0)