From 3b84f71bb2b47ca2dc657c7c5205901b6c061f30 Mon Sep 17 00:00:00 2001 From: Antonin RAFFIN Date: Sat, 20 Jul 2024 16:35:21 +0200 Subject: [PATCH] Reformat toml file --- pyproject.toml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8e20ffe00..dd435a33e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,10 +13,10 @@ ignore = ["B028", "RUF013"] [tool.ruff.lint.per-file-ignores] # Default implementation in abstract methods -"./stable_baselines3/common/callbacks.py"= ["B027"] -"./stable_baselines3/common/noise.py"= ["B027"] +"./stable_baselines3/common/callbacks.py" = ["B027"] +"./stable_baselines3/common/noise.py" = ["B027"] # ClassVar, implicit optional check not needed for tests -"./tests/*.py"= ["RUF012", "RUF013"] +"./tests/*.py" = ["RUF012", "RUF013"] [tool.ruff.lint.mccabe] @@ -37,9 +37,7 @@ exclude = """(?x)( [tool.pytest.ini_options] # Deterministic ordering for tests; useful for pytest-xdist. -env = [ - "PYTHONHASHSEED=0" -] +env = ["PYTHONHASHSEED=0"] filterwarnings = [ # Tensorboard warnings @@ -47,23 +45,27 @@ filterwarnings = [ # Gymnasium warnings "ignore::UserWarning:gymnasium", # tqdm warning about rich being experimental - "ignore:rich is experimental" + "ignore:rich is experimental", ] markers = [ - "expensive: marks tests as expensive (deselect with '-m \"not expensive\"')" + "expensive: marks tests as expensive (deselect with '-m \"not expensive\"')", ] [tool.coverage.run] disable_warnings = ["couldnt-parse"] branch = false omit = [ - "tests/*", - "setup.py", - # Require graphical interface - "stable_baselines3/common/results_plotter.py", - # Require ffmpeg - "stable_baselines3/common/vec_env/vec_video_recorder.py", + "tests/*", + "setup.py", + # Require graphical interface + "stable_baselines3/common/results_plotter.py", + # Require ffmpeg + "stable_baselines3/common/vec_env/vec_video_recorder.py", ] [tool.coverage.report] -exclude_lines = [ "pragma: no cover", "raise NotImplementedError()", "if typing.TYPE_CHECKING:"] +exclude_lines = [ + "pragma: no cover", + "raise NotImplementedError()", + "if typing.TYPE_CHECKING:", +]