Skip to content

fix ruff linting errors 🏅  #959

Closed

Description

@janfb

In #955 we introduced ruff for formatting and linting (replacing black, isort, flake8 etc).

In the pre-commit hook, ruff lint . is currently commented out because it causes hundreds of errors / violations of the linting rules.

The PR fixing this issue would run ruff lint . locally and fix all of these errors, ideally in separate commits for each type of problems. The most prominent problems are

  • E501 Line too long (>88)
  • B008 Do not perform function in argument defaults
  • B006 Do not use mutable data structures for argument defaults
  • UP006, UP007 wrong type annotations, e.g., Tuple instead of tuple.

Most of them are easy to fix because ruff gives explicit hints.

This is an annoying thing to fix. The contributor fixing this will be honored publicly 🏅

Activity

  1. added
    bug
    docs
    enhancement
    hackathon
    on Feb 28, 2024
  2. added this to the Hackathon 2024 milestone on Feb 28, 2024
  3. added
    karma
    on Feb 28, 2024
  4. added 2 commits that reference this issue on Mar 7, 2024
    9e95791
    651797e
  5. added a commit that references this issue on Mar 12, 2024
    2bdcf0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocsenhancementhackathonkarma

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions