Skip to content

[DEPR]: Replace deprecated pydocstyle with ruff #348

@BryanttV

Description

@BryanttV

Proposal Date

2025-04-10

Target Ticket Acceptance Date

2025-04-24

Earliest Open edX Named Release Without This Functionality

Ulmo - 2025-10

Rationale

The pydocstyle package has been deprecated since November 2023. The latest supported Python version is 3.11. They recommend using ruff as a replacement. These changes have already been tested in openedx-filters and openedx-events.

Removal

To completely remove pydocstyle and replace it with ruff it's necessary:

  1. Remove pydocstyle from the requirements in edx-cookiecutters for new apps, libraries, and services and replace it with ruff.

  2. Remove pydocstyle from all Open edX repositories and replace it with ruff. The following are the Open edX repositories currently using/installing the package:

    Installed but not used:

Replacement

Ruff

Deprecation

No response

Migration

  1. Install and configure Ruff.
  2. Remove any references to pydocstyle (from tox.ini or Makefile, depending on the repository).
  3. Fix any docstring errors that were not previously reported.
  4. Create a PR and merge.

Additional Info

Task List

  • Remove pydocstyle from requirements in edx-cookiecutters for new apps, libraries, and services and replace it with ruff.
  • Remove pydocstyle from all Open edX repositories, and replace it with ruff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprProposal for deprecation & removal per OEP-21

    Type

    No type

    Projects

    Status

    Draft

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions