Skip to content

Commit 430a395

Browse files
authored
Merge pull request #604 from Farama-Foundation/pre-commit-fix
Pre-commit fix
2 parents 009cead + 42481c9 commit 430a395

File tree

5 files changed

+5
-335
lines changed

5 files changed

+5
-335
lines changed

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
hooks:
4242
- id: flake8
4343
args:
44-
- --ignore=E203,W503,E741
44+
- --ignore=E203,E231,W503,E741
4545
- --max-complexity=30
4646
- --max-line-length=456
4747
- --show-source

Diff for: examples/python/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ Demonstrates how to use the labels buffer.
4040
### [learning_pytorch.py](https://github.com/mwydmuch/ViZDoom/blob/master/examples/python/learning_pytorch.py), [learning_pytorch_test.py](https://github.com/mwydmuch/ViZDoom/blob/master/examples/python/learning_pytorch_test.py)
4141
Contains an example of how to implement basic Q-learning on the interface within PyTorch.
4242

43-
### [learning_theano.py](https://github.com/mwydmuch/ViZDoom/blob/master/examples/python/learning_theano.py)
44-
Contains an example of how to implement basic Q-learning on the interface within Theano.
45-
4643
### [learning_tensorflow.py](https://github.com/mwydmuch/ViZDoom/blob/master/examples/python/learning_tensorflow.py)
4744
Contains an example of how to implement basic Q-learning on the interface within Tensorflow.
4845

Diff for: examples/python/learning_theano.py

-327
This file was deleted.

Diff for: scripts/create_python_docstrings_from_cpp_docs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def camel_case_to_snake_case(text):
8686
if match:
8787
if started:
8888
next_docstring = next_docstring.strip()
89-
next_docstring += f'){RAW_STRING_ESCAPE_SEQ}";\n\n'
89+
next_docstring += f'){RAW_STRING_ESCAPE_SEQ}";\n\n' # noqa
9090
output_file.write(next_docstring)
9191

9292
next_docstring = ""
@@ -110,7 +110,7 @@ def camel_case_to_snake_case(text):
110110

111111
if started:
112112
output_file.write(
113-
f'{next_docstring.strip()}){RAW_STRING_ESCAPE_SEQ}";\n\n'
113+
f'{next_docstring.strip()}){RAW_STRING_ESCAPE_SEQ}";\n\n' # noqa
114114
)
115115

116116
if "namespace" in file:

Diff for: tests/test_gymnasium_wrapper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ def _compare_envs(
410410
), f"Incorrect terms: {env1_name} environment: {term1}. {env2_name} environment: {term2}"
411411
assert data_equivalence(
412412
trunc1, trunc2
413-
), f"Incorrect truncs: {env1_name} environment: {trunc1}. {env2_name} environment: {trunc2}"
413+
), f"Incorrect truncs: {env1_name} environment: {trunc1}. {env2_name} environment: {trunc2}"
414414
assert data_equivalence(
415415
info1, info2
416-
), f"Incorrect info: {env1_name} environment: {info1}. {env2_name} environment: {info2}"
416+
), f"Incorrect info: {env1_name} environment: {info1}. {env2_name} environment: {info2}"
417417

418418
done1 = term1 or trunc1
419419
done2 = term2 or trunc2

0 commit comments

Comments
 (0)