-
-
Couldn't load subscription status.
- Fork 1.2k
Description
Proposal
Optimization to PEP8 and typing consistency
Plan:
- Run project linters (pre-commit: black, isort, flake8, pydocstyle, codespell, pyright)
- Apply minimal, non-invasive fixes (formatting, docstrings, trivial type hints)
- No behavior changes
- Will also improve minor docs formatting if found
WIP – small incremental commits.
Motivation
I noticed minor inconsistencies in formatting and type hints across a few modules.
This proposal aims to align the code with existing pre-commit and typing standards
without introducing behavioral changes. The goal is to maintain overall code health
and consistency across the project.
Pitch
Ensure that the repository codebase fully conforms to Gymnasium’s pre-commit
and linting configuration (PEP8, typing, docstring style). This will make the
code more readable and maintainable, reducing noise in future diffs.
Alternatives
No alternative approaches suggested, as this does not introduce new functionality
or design changes — only adheres to existing standards.
Additional context
Local checks were run using pre-commit and pyright; no functional changes are planned.
All modifications will be incremental, reviewed, and referenced to this issue.
Checklist
- I have checked that there is no similar issue in the repo