From d0c0942d1dfb9c2e3064b1484bba8ab28e898a3f Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sun, 16 Jun 2024 17:27:04 +0200 Subject: [PATCH] Update the kickoff pyproject.toml file for ruff and numpy updates --- README.org | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/README.org b/README.org index e94c960..323a8c1 100644 --- a/README.org +++ b/README.org @@ -4966,26 +4966,29 @@ profile = "black" [tool.ruff] line-length = 88 + +[tool.ruff.lint] select = [ - "ARG", # flake8-unused-arguments - "B", # flake8-bugbear - "C", # mccabe - "C4", # flake8-comprehensions - "E", # pycodestyle - "D", # pydocstyle - "F", # pyflakes - "UP", # pyupgrade - "W", # pycodestyle -] + "ARG", # flake8-unused-arguments + "B", # flake8-bugbear + "C", # mccabe + "C4", # flake8-comprehensions + "E", # pycodestyle + "D", # pydocstyle + "F", # pyflakes + "UP", # pyupgrade + "W", # pycodestyle + "NPY201", # numpy-2.0 upgrade guide + ] ignore = [ "B905", # `zip()` without an explicit `strict=` parameter "D202", # no blank lines allowed after function docstring ] -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 15 -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" # Local Variables: