Problem
We want to change back to docformatter to be consistent with the lint check
Proposed solution
replace the block of code
# ruff - An extremely fast Python linter and code formatter, written in Rust.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff-check
args: [--fix, --config, ./pyproject.toml]
to
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.8
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--in-place, --config, ./pyproject.toml]
in the .pre-commit-config.yaml and change
[tool.ruff]
line-length = 72
[tool.ruff.lint.pydocstyle]
convention = "numpy"
to
[tool.docformatter]
recursive = true
wrap-summaries = 72
wrap-descriptions = 72
in the pyproject.toml
Problem
We want to change back to
docformatterto be consistent with the lint checkProposed solution
replace the block of code
to
in the
.pre-commit-config.yamland changeto
in the
pyproject.toml