Skip to content

Commit a886421

Browse files
committed
Merge branch 'dev-v2' into py313-support
Conflicts: pyproject.toml
2 parents 6e513e8 + 13536fa commit a886421

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,13 @@ PYDEVD_DISABLE_FILE_VALIDATION="1"
223223
[tool.poe.tasks] # https://github.com/nat-n/poethepoet
224224
test = "pytest test"
225225
test-reduced = "pytest test/base test/continuous --cov=tianshou --durations=0 -v --color=yes"
226-
_ruff_check = "ruff check ."
226+
_ruff_fix = "ruff check --fix ."
227+
_ruff_fix_check = "ruff check ."
227228
_ruff_format = "ruff format ."
228-
lint = ["_ruff_check"]
229+
_ruff_format_check = "ruff format --check ."
230+
lint = ["_ruff_format_check", "_ruff_fix_check"]
229231
clean-nbs = "python docs/nbstripout.py"
230-
format = ["_ruff_format"]
232+
format = ["_ruff_fix", "_ruff_format"]
231233
_autogen_rst = "python docs/autogen_rst.py"
232234
_sphinx_build = "sphinx-build -b html docs docs/_build -W --keep-going"
233235
_jb_generate_toc = "python docs/create_toc.py"

tianshou/highlevel/experiment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
from copy import deepcopy
2626
from dataclasses import asdict, dataclass
2727
from pprint import pformat
28-
from typing import Generic, Self
29-
from typing import TYPE_CHECKING
28+
from typing import TYPE_CHECKING, Generic, Self
3029

3130
from tianshou.highlevel.params.collector import CollectorFactory
3231

0 commit comments

Comments
 (0)