Skip to content

MAINT: Migrate from black/isort/pylint to ruff for linting and formatting #451

@mahidhiman12

Description

@mahidhiman12

The current .pre-commit-config.yaml uses black, isort, pydocstyle and pylint. The other ArviZ repositories (arviz-base, arviz-stats) have already migrated to ruff and ruff-format. Migrating arviz-plots would bring it in line with the rest of the ecosystem.
This would involve:

  • Replacing black, isort, pydocstyle, pylint hooks with ruff and ruff-format in .pre-commit-config.yaml
  • Adding [tool.ruff] configuration to pyproject.toml
  • Removing [tool.black], [tool.isort], [tool.pydocstyle] sections
  • Removing pylint from tox check dependencies
  • Fixing any code style issues flagged by ruff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions