Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#91)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/psf/black: 23.11.0 → 24.8.0](psf/black@23.11.0...24.8.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
pre-commit-ci[bot] authored Sep 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 66d8fd1 commit b793fbc
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
repos:
# Out-of-the-box hooks from the pre-commit org
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
@@ -16,6 +16,6 @@ repos:
- id: check-added-large-files
# Code formatting with black
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.8.0
hooks:
- id: black
6 changes: 4 additions & 2 deletions nemo_cmd/deflate.py
Original file line number Diff line number Diff line change
@@ -167,8 +167,10 @@ def _poll_and_launch(jobs, jobs_in_progress):
for running_job in jobs_in_progress.copy().values():
if running_job.done:
result, _ = running_job.process.communicate()
logger.error(result) if result else logger.info(
f"netCDF4 deflated {running_job.filepath}"
(
logger.error(result)
if result
else logger.info(f"netCDF4 deflated {running_job.filepath}")
)
jobs_in_progress.pop(running_job.pid)
try:

0 comments on commit b793fbc

Please sign in to comment.