From d4d1313417879534462861be2ecf831a57f1a7a6 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 6 Feb 2023 10:46:22 +0100 Subject: [pre-commit] Add ruff to the pre-commit configuration --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 3fa73da29..f184d9398 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -130,3 +130,11 @@ module = [ "pytest", "sphinx.*", ] +[tool.ruff] +select = ["E", "F", "B"] +ignore = [ + "F841", # False positive for typing + "B905", # Not enforced previousely +] +fixable = ["E", "F", "B"] +line-length = 125 -- cgit v1.2.1