Skip to content

Commit a5af9ef

Browse files
[pre-commit.ci] pre-commit autoupdate (#2233)
Signed-off-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sun, Xuehao <[email protected]>
1 parent 3f02be2 commit a5af9ef

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ repos:
8383
)$
8484
8585
- repo: https://github.com/PyCQA/docformatter
86-
rev: 06907d0
86+
rev: v1.7.7
8787
hooks:
8888
- id: docformatter
8989
args: [
@@ -118,7 +118,7 @@ repos:
118118
- id: blacken-docs
119119
args: [--line-length=120, --skip-errors]
120120
additional_dependencies:
121-
- black==24.10.0
121+
- black==25.1.0
122122
exclude: |
123123
(?x)^(
124124
examples/.+|
@@ -146,7 +146,7 @@ repos:
146146
)$
147147
148148
- repo: https://github.com/astral-sh/ruff-pre-commit
149-
rev: v0.11.4
149+
rev: v0.12.2
150150
hooks:
151151
- id: ruff
152152
args: [--fix, --exit-non-zero-on-fix, --no-cache]

docs/source/pruning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ The following section exemplifies how to use hooks in user pass-in training func
335335
```
336336
[**Stable Option** ]Insert Hook functions in your codes.
337337
```python
338-
""" All you need is to insert following API functions to your codes:
338+
"""All you need is to insert following API functions to your codes:
339339
on_train_begin() # Setup pruners
340340
on_step_begin() # Prune weights
341341
on_before_optimizer_step() # Do weight regularization

neural_compressor/compression/pruner/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ The following section exemplifies how to use hooks in user pass-in training func
336336
```
337337
[**Stable Option** ]Insert Hook functions in your codes.
338338
```python
339-
""" All you need is to insert following API functions to your codes:
339+
"""All you need is to insert following API functions to your codes:
340340
on_train_begin() # Setup pruners
341341
on_step_begin() # Prune weights
342342
on_before_optimizer_step() # Do weight regularization

0 commit comments

Comments
 (0)