Commit 08be4e8 1 parent 3a4c4d1 commit 08be4e8 Copy full SHA for 08be4e8
File tree 4 files changed +10
-11
lines changed
4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ repos:
25
25
- id : debug-statements
26
26
- id : double-quote-string-fixer
27
27
- repo : https://github.com/pre-commit/mirrors-clang-format
28
- rev : v16.0.2
28
+ rev : v16.0.3
29
29
hooks :
30
30
- id : clang-format
31
31
- repo : https://github.com/charliermarsh/ruff-pre-commit
32
- rev : v0.0.263
32
+ rev : v0.0.265
33
33
hooks :
34
34
- id : ruff
35
35
args : [--fix, --exit-non-zero-on-fix]
42
42
hooks :
43
43
- id : black-jupyter
44
44
- repo : https://github.com/asottile/pyupgrade
45
- rev : v3.3.2
45
+ rev : v3.4.0
46
46
hooks :
47
47
- id : pyupgrade
48
48
args : [--py38-plus] # sync with requires-python
69
69
- repo : https://github.com/codespell-project/codespell
70
70
rev : v2.2.4
71
71
hooks :
72
- - id : codespell
73
- additional_dependencies : [".[toml]"]
74
- exclude : |
72
+ - id : codespell
73
+ additional_dependencies : [".[toml]"]
74
+ exclude : |
75
75
(?x)(
76
76
^docs/source/spelling_wordlist.txt$|
77
77
^docs/source/references.bib$
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ ruff-fix: ruff-install
138
138
$(PYTHON ) -m ruff check . --fix --exit-non-zero-on-fix
139
139
140
140
mypy : mypy-install
141
- $(PYTHON ) -m mypy $(PROJECT_PATH )
141
+ $(PYTHON ) -m mypy $(PROJECT_PATH ) --install-types --non-interactive
142
142
143
143
pre-commit : pre-commit-install
144
144
$(PYTHON ) -m pre_commit run --all-files
@@ -222,5 +222,8 @@ docker-devel:
222
222
223
223
docker : docker-base docker-devel
224
224
225
+ docker-run-base : docker-base
226
+ docker run --network=host --gpus=all -v /:/host -h ubuntu -it $(PROJECT_NAME ) :$(COMMIT_HASH )
227
+
225
228
docker-run-devel : docker-devel
226
229
docker run --network=host --gpus=all -v /:/host -h ubuntu -it $(PROJECT_NAME ) -devel:$(COMMIT_HASH )
Original file line number Diff line number Diff line change 14
14
# ==============================================================================
15
15
"""The base class for optimizers."""
16
16
17
- # mypy: no-warn-unreachable
18
-
19
17
from __future__ import annotations
20
18
21
19
from typing import Callable , Iterable , Sequence
Original file line number Diff line number Diff line change 14
14
# ==============================================================================
15
15
"""Utilities for TorchOpt."""
16
16
17
- # mypy: no-warn-unused-ignores,no-warn-unreachable
18
-
19
17
from __future__ import annotations
20
18
21
19
import copy
You can’t perform that action at this time.
0 commit comments