Skip to content

Commit 0261075

Browse files
[pre-commit.ci] pre-commit autoupdate (fastmachinelearning#1182)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0) - [github.com/PyCQA/isort: 5.13.2 → 6.0.0](PyCQA/isort@5.13.2...6.0.0) * [pre-commit.ci] auto fixes from pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jan-Frederik Schulte <[email protected]>
1 parent 6a05587 commit 0261075

File tree

7 files changed

+12
-15
lines changed

7 files changed

+12
-15
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: (^hls4ml\/templates\/(vivado|quartus)\/(ap_types|ac_types)\/|^test/pyte
22

33
repos:
44
- repo: https://github.com/psf/black
5-
rev: 24.10.0
5+
rev: 25.1.0
66
hooks:
77
- id: black
88
language_version: python3
@@ -30,7 +30,7 @@ repos:
3030
- id: trailing-whitespace
3131

3232
- repo: https://github.com/PyCQA/isort
33-
rev: 5.13.2
33+
rev: 6.0.0
3434
hooks:
3535
- id: isort
3636

hls4ml/backends/oneapi/passes/clone_templates.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
""" The clone templates in the fpga backend are not enough for oneAPI, so this adds the missing parts
2-
"""
1+
"""The clone templates in the fpga backend are not enough for oneAPI, so this adds the missing parts"""
32

43
from hls4ml.backends.fpga.passes.clone import Clone
54
from hls4ml.backends.oneapi.oneapi_template import StreamFunctionCallTemplate, TaskSequenceTemplate

hls4ml/contrib/kl_layer/kl_layer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
2-
Usage example for a custom KL loss layer
3-
Takes as an input two arrays: z_mean and z_log_var
4-
and computes KL "distance" between normal distribution
5-
and Gaussian with mu=z_mean and sigma=z_log_var
2+
Usage example for a custom KL loss layer
3+
Takes as an input two arrays: z_mean and z_log_var
4+
and computes KL "distance" between normal distribution
5+
and Gaussian with mu=z_mean and sigma=z_log_var
66
7-
The HLS part is in contrib/kl_layer/kl_layer.h
7+
The HLS part is in contrib/kl_layer/kl_layer.h
88
"""
99

1010
from pathlib import Path

hls4ml/report/vivado_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def _convert_cycles_to_time(n_cycles, clock_period):
502502

503503
time_in_us = time_in_ns / 1000
504504
if time_in_us < 1000:
505-
return str(time_in_us) + ' \u00B5s'
505+
return str(time_in_us) + ' \u00b5s'
506506

507507
time_in_ms = time_in_us / 1000
508508
if time_in_ms < 1000:

test/pytest/test_keras_nested_model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
""" Test that nested models in Keras is properly parsed and expanded by the optimizers.
2-
"""
1+
"""Test that nested models in Keras is properly parsed and expanded by the optimizers."""
32

43
from pathlib import Path
54

test/pytest/test_pipeline_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Test that pipeline style is properly handled by optimizers (respected if user-defined, correctly set if 'auto'). """
1+
"""Test that pipeline style is properly handled by optimizers (respected if user-defined, correctly set if 'auto')."""
22

33
from pathlib import Path
44

test/pytest/test_reshape.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
""" Test that reshape is properly handled by optimizers.
2-
"""
1+
"""Test that reshape is properly handled by optimizers."""
32

43
from pathlib import Path
54

0 commit comments

Comments
 (0)