From 8ab700677fed4618cf875337fc31ae310fc0a0e0 Mon Sep 17 00:00:00 2001 From: Will Kahn-Greene Date: Mon, 18 Mar 2024 15:28:11 -0400 Subject: [PATCH] Update ruff lint configuration ruff changed the location for lint configuration so that the tool could also support reformatting code. This updates the configuration to the new schema. --- pyproject.toml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f0960c4f..c6fab06e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,13 @@ [tool.ruff] -# Enable pycodestyle (`E`), Pyflakes (`F`), and Bugbear (`B`) codes by default. +line-length = 88 + +target-version = "py311" + +[tool.ruff.lint] +# Enable pycodestyle (`E`), Pyflakes (`F`), and Bugbear (`B`) rules select = ["E", "F", "B"] + +# Ignore line length violations ignore = ["E501"] unfixable = ["B"] @@ -20,14 +27,9 @@ exclude = [ ] per-file-ignores = {} -line-length = 88 - # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -# Assume Python 3.11. -target-version = "py311" - [tool.pytest.ini_options] norecursedirs = [".cache", "__pycache__"]