From 4324553a7e263e195d8f8e2ef82dd63ced2d5f79 Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Wed, 13 Mar 2024 14:33:41 -0500 Subject: [PATCH] chore: Update `ruff` config Close #1955, #1956 --- pyproject.toml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ae5f9fc12..a376bd6a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,12 +80,15 @@ build-backend = "setuptools.build_meta" [tool.setuptools_scm] -[tool.ruff.isort] +[tool.ruff] +extend-exclude = ["build"] +line-length=88 + +[tool.ruff.lint.isort] required-imports = ["from __future__ import annotations"] known-first-party= ["pint"] - -[tool.ruff] +[tool.ruff.lint] extend-select = [ "I", # isort ] @@ -100,5 +103,3 @@ ignore = [ # line break before binary operator # "W503" ] -extend-exclude = ["build"] -line-length=88