File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -223,11 +223,13 @@ PYDEVD_DISABLE_FILE_VALIDATION="1"
223223[tool .poe .tasks ] # https://github.com/nat-n/poethepoet
224224test = " pytest test"
225225test-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" ]
229231clean-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"
Original file line number Diff line number Diff line change 2525from copy import deepcopy
2626from dataclasses import asdict , dataclass
2727from pprint import pformat
28- from typing import Generic , Self
29- from typing import TYPE_CHECKING
28+ from typing import TYPE_CHECKING , Generic , Self
3029
3130from tianshou .highlevel .params .collector import CollectorFactory
3231
You can’t perform that action at this time.
0 commit comments