From 4de654512e8c1219046f2f49664b6c9f66946e84 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 2 Mar 2023 21:19:56 +0100 Subject: [pre-commit] Transition from flake8/autoflake to ruff (#8372) ruff is faster and support pyproject.toml. flake8-typing-import is not implemented but it checks for things in python version < 3.7.2 that we do not support. --- pyproject.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 80547df05..1c8a915ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -130,10 +130,13 @@ module = [ "pytest", "sphinx.*", ] + [tool.ruff] -select = ["E", "F", "B"] +select = ["E", "F", "W", "B"] ignore = [ "B905", # Not enforced previousely ] -fixable = ["E", "F", "B"] -line-length = 125 +fixable = ["E", "F", "W", "B"] +# ruff is less lenient than pylint and does not make any exceptions +# (for docstrings, strings and comments in particular). +line-length = 115 -- cgit v1.2.1