Skip to content

Commit

Permalink
chore(pre-commit): [pre-commit.ci] autoupdate (#196)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Xuehai Pan <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and XuehaiPan authored Dec 10, 2023
1 parent 26e51d4 commit 4fd9d29
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ repos:
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4
rev: v17.0.6
hooks:
- id: clang-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
rev: v0.1.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,5 @@ filterwarnings = [
'ignore:Explicitly requested dtype float64 requested in .* is not available, and will be truncated to dtype float32\.:UserWarning',
'ignore:jax\.numpy\.DeviceArray is deprecated\. Use jax\.Array\.:DeprecationWarning',
'ignore:.*functorch.*deprecate.*:UserWarning',
'ignore:.*Apple Paravirtual device.*:UserWarning',
]
2 changes: 1 addition & 1 deletion torchopt/diff/implicit/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def make_custom_vjp_solver_fn(
# pylint: disable-next=missing-class-docstring,abstract-method
class ImplicitMetaGradient(Function):
@staticmethod
def forward( # type: ignore[override] # pylint: disable=arguments-differ
def forward( # pylint: disable=arguments-differ
ctx: Any,
*flat_args: Any,
) -> tuple[Any, ...]:
Expand Down
2 changes: 1 addition & 1 deletion torchopt/distributed/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def remote_async_call(
if reducer is not None:
return cast(
Future[U],
future.then(lambda fut: cast(Callable[[Iterable[T]], U], reducer)(fut.wait())),
future.then(lambda fut: reducer(fut.wait())),
)
return future

Expand Down

0 comments on commit 4fd9d29

Please sign in to comment.