Skip to content

Commit a4c8676

Browse files
committed
Add pre-commit-config yaml for enabling pre-commit checks
1 parent 4a1137b commit a4c8676

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

.codespell_words

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Parth
2+
Reacher
3+
reacher
4+
theses

.pre-commit-config.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# To use:
2+
#
3+
# pre-commit run -a
4+
#
5+
# Or:
6+
#
7+
# pre-commit install # (runs every time you commit in git)
8+
#
9+
# To update this file:
10+
#
11+
# pre-commit autoupdate
12+
#
13+
# See https://github.com/pre-commit/pre-commit
14+
15+
repos:
16+
# Standard hooks
17+
- repo: https://github.com/pre-commit/pre-commit-hooks
18+
rev: v4.5.0
19+
hooks:
20+
- id: check-added-large-files
21+
- id: check-case-conflict
22+
- id: check-json
23+
- id: check-merge-conflict
24+
- id: check-symlinks
25+
- id: check-toml
26+
- id: check-yaml
27+
- id: debug-statements
28+
- id: destroyed-symlinks
29+
- id: detect-private-key
30+
- id: end-of-file-fixer
31+
exclude: docs/_static/img/
32+
- id: mixed-line-ending
33+
- id: pretty-format-json
34+
- id: trailing-whitespace
35+
36+
- repo: https://github.com/codespell-project/codespell
37+
rev: v2.3.0
38+
hooks:
39+
- id: codespell
40+
args: ['--write-changes', '--ignore-words=.codespell_words']

docs/common/envs.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ SimpleMultiObsEnv
2121
-----------------
2222

2323
.. autoclass:: SimpleMultiObsEnv
24-
:members:
24+
:members:

docs/modules/a2c.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Train a A2C agent on ``CartPole-v1`` using 4 environments.
8888
env = make_vec_env("CartPole-v1", n_envs=8, vec_env_cls=SubprocVecEnv)
8989
model = A2C("MlpPolicy", env, device="cpu")
9090
model.learn(total_timesteps=25_000)
91-
91+
9292
For more information, see :ref:`Vectorized Environments <vec_env>`, `Issue #1245 <https://github.com/DLR-RM/stable-baselines3/issues/1245>`_ or the `Multiprocessing notebook <https://colab.research.google.com/github/Stable-Baselines-Team/rl-colab-notebooks/blob/sb3/multiprocessing_rl.ipynb>`_.
9393

9494

0 commit comments

Comments
 (0)