Skip to content

PEP8 WIP #1459

@lessWronger

Description

@lessWronger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions