From 57b78928815e5384a5786874a31713b4ddd3326a Mon Sep 17 00:00:00 2001 From: "Matthew W. Thompson" Date: Wed, 13 Mar 2024 12:49:02 -0500 Subject: [PATCH] Update `ruff` config --- 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