Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pre-commit): [pre-commit.ci] autoupdate #196

Merged
merged 3 commits into from
Dec 10, 2023
Merged
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
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