diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e17bb09cb3..b961f14f86 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,22 @@ repos: hooks: - id: blacken-docs additional_dependencies: [black==22.12.0] + args: [--line-length=88] + +- repo: https://github.com/PyCQA/docformatter + rev: v1.7.5 + hooks: + - id: docformatter + args: [--in-place, --wrap-summaries=88, --wrap-descriptions=88, --make-summary-multi-line] + +- repo: https://github.com/asottile/blacken-docs + rev: v1.12.1 + hooks: + - id: blacken-docs + name: blacken-docs-python + additional_dependencies: [black==22.12.0] + files: \.py$ + args: [--line-length=88] - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 @@ -54,4 +70,4 @@ repos: hooks: - id: add-license-headers args: - - LICENSE \ No newline at end of file + - LICENSE diff --git a/doc/changelog.d/1078.miscellaneous.md b/doc/changelog.d/1078.miscellaneous.md new file mode 100644 index 0000000000..c27977d672 --- /dev/null +++ b/doc/changelog.d/1078.miscellaneous.md @@ -0,0 +1 @@ +Fix: docstring example style \ No newline at end of file