From 761d2513ceecc81306afc9ad96e99b53a295212e Mon Sep 17 00:00:00 2001 From: Thomas Mansencal Date: Mon, 29 Jan 2024 17:52:44 +1300 Subject: [PATCH] Use `Ruff` format. --- .pre-commit-config.yaml | 9 ++------- pyproject.toml | 3 +++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 161342f..334eb6b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,18 +25,13 @@ repos: - id: flynt args: [--verbose] - repo: https://github.com/PyCQA/isort - rev: "5.12.0" + rev: "5.13.2" hooks: - id: isort - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.6" + rev: "v0.1.14" hooks: - id: ruff - - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.11.0 - hooks: - - id: black - language_version: python3.9 - repo: https://github.com/adamchainz/blacken-docs rev: 1.16.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index d2dc551..e52f847 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -212,6 +212,9 @@ convention = "numpy" "utilities/*" = ["EXE001", "INP"] "utilities/unicode_to_ascii.py" = ["RUF001"] +[tool.ruff.format] +docstring-code-format = true + [build-system] requires = ["poetry_core>=1.0.0"] build-backend = "poetry.core.masonry.api"