Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies:
- psutil
- py-cordex
- pybtex
- python >=3.9,<3.12
- python >=3.9
- python-stratify >=0.3
- pyyaml
- requests
Expand All @@ -50,14 +50,14 @@ dependencies:
- sphinx >=6.1.3
- pydata-sphinx-theme
# Python packages needed for testing
- flake8
- mypy >=0.990
- pytest >=3.9,!=6.0.0rc1,!=6.0.0
- pytest-cov >=2.10.1
- pytest-env
- pytest-html !=2.1.0
- pytest-metadata >=1.5.1
- pytest-mock
- pytest-mypy
- pytest-xdist
# Not on conda-forge - ESMValTool_sample_data==0.0.3
# Still for testing, MyPy library stubs
Expand All @@ -69,6 +69,10 @@ dependencies:
- isort
- pre-commit
- prospector >=1.9.0
- pyroma
# Not on conda forge - vprof
- yamllint
- yapf
- pip:
- flake8>=7
- ESMValTool_sample_data
2 changes: 1 addition & 1 deletion esmvalcore/_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def _run(self, input_files):

returncode = None

with resource_usage_logger(process.pid, self.resource_log),\
with resource_usage_logger(process.pid, self.resource_log), \
open(self.log, 'ab') as log:
last_line = ['']
while returncode is None:
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@
'codespell',
'docformatter',
'isort',
'flake8>=7',
'pre-commit',
'prospector[with_pyroma]>=1.9.0',
# 'prospector[with_pyroma]>=1.9.0',
'vprof',
'yamllint',
'yapf',
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/main/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_run_recipe_error(mocker, caplog):
print(caplog.text)

# Check that the exit status is 1
assert exit_.called_once_with(1)
exit_.assert_called_once_with(1)

# Check that only the RecipeError is logged above DEBUG level
errors = [r for r in caplog.records if r.levelname != 'DEBUG']
Expand Down