Skip to content

[v2] Update ruff rules #2416

@Samoed

Description

@Samoed

I think we can enable:

  • T20 - flake8-print print found
  • ERA - Found commented-out code
  • B - flake8-bugbear.
  • A - flake8-builtins. To see if shadow builtins functions
  • LOG - flake8-logging. Simple logging checkers
  • ICS - flake8-implicit-str-concat
  • ICN - flake8-import-conventions
  • PT - flake8-pytest-style
  • RET - flake8-return
  • SIM - flake8-simplify
  • PTH - flake8-use-pathlib
  • NPY - NumPy-specific rules
  • PD - pandas-vet
  • N - pep8-naming
  • W - pycodestyle warnings (now only errors are enabled)
  • DOC - pydoclint
  • RUF - Ruff-specific rules

Possible:

  • ANN - flake8-annotations. if we want better type annotations
  • TID - flake8-tidy-imports. Will use absolute imports instead of relative
  • TC - flake8-type-checking
  • ARG - flake8-unused-arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    v2Issues and PRs related to `v2` branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions