From 7639a9e4f742b1f436f02315157b42b0c40a6dbe Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 16 Dec 2023 06:27:55 -0600 Subject: [PATCH] use ruff docstring-code-format --- .pre-commit-config.yaml | 10 ++-------- pyproject.toml | 5 ++++- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1fce7856ec..3f35ede468 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.2 + rev: 0.27.3 hooks: - id: check-github-workflows @@ -38,12 +38,6 @@ repos: - id: prettier types_or: [yaml, html, json] - - repo: https://github.com/adamchainz/blacken-docs - rev: "1.16.0" - hooks: - - id: blacken-docs - additional_dependencies: [black==23.7.0] - - repo: https://github.com/codespell-project/codespell rev: "v2.2.6" hooks: @@ -67,7 +61,7 @@ repos: ["traitlets>=5.13", "jupyter_core>=5.5", "jupyter_client>=8.5"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.8 hooks: - id: ruff types_or: [python, jupyter] diff --git a/pyproject.toml b/pyproject.toml index 1787b32168..aaf768627a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -142,6 +142,9 @@ optional-editable-build = true [tool.ruff] line-length = 100 +[tool.ruff.format] +docstring-code-format = true + [tool.ruff.lint] select = [ "B", # flake8-bugbear @@ -295,4 +298,4 @@ exclude = ["docs", "test"] ignore = ["W002"] [tool.repo-review] -ignore = ["GH102"] +ignore = ["GH102", "PC111"]