From e1337aec711e412a3a46444e088e2bc6ad692730 Mon Sep 17 00:00:00 2001 From: Remi Cadene Date: Sun, 19 May 2024 19:56:06 +0000 Subject: [PATCH] pre-commit run --all-files --- CONTRIBUTING.md | 5 +++++ tests/scripts/save_policy_to_safetensor.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dd8f97e2..b20dede6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -195,6 +195,11 @@ Follow these steps to start contributing: git commit ``` + Note, if you already commited some changes that have a wrong formatting, you can use: + ```bash + pre-commit run --all-files + ``` + Please write [good commit messages](https://chris.beams.io/posts/git-commit/). It is a good idea to sync your copy of the code with the original diff --git a/tests/scripts/save_policy_to_safetensor.py b/tests/scripts/save_policy_to_safetensor.py index 5daf96e5..51af9f68 100644 --- a/tests/scripts/save_policy_to_safetensor.py +++ b/tests/scripts/save_policy_to_safetensor.py @@ -33,7 +33,8 @@ def get_policy_stats(env_name, policy_name, extra_overrides): f"env={env_name}", f"policy={policy_name}", "device=cpu", - ] + extra_overrides, + ] + + extra_overrides, ) set_global_seed(1337) dataset = make_dataset(cfg)