Skip to content

Enable Ruff E, W, F, RUF, NPY, and DTZ rules #317

@njzjz

Description

@njzjz
  1. In the pre-commit configuration file, upgrade Ruff to the latest version;
  2. Enable Ruff E, W, F, RUF, NPY, and DTZ rules, i.e.
# pyproject.toml
[tool.ruff.format]
docstring-code-format = true

[tool.ruff.lint]
select = [
    "E", # errors
    "W", # warning
    "F", # pyflakes
    "RUF", # ruff
    "NPY", # numpy
    "DTZ", # datetime
]
  1. Fix all Ruff errors.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions