From 6756076c34d69956d5cc0286e952aa7da69da75e Mon Sep 17 00:00:00 2001 From: Ryan Kingsbury Date: Thu, 20 Jun 2024 16:07:32 -0400 Subject: [PATCH] update pyproject.toml for numpy 2.0 --- pyproject.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d91bb2115..e383d2e9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,6 +102,9 @@ line-length = 120 [tool.ruff] line-length = 120 +src = ["src"] + +[tool.ruff.lint] select = [ "B", # flake8-bugbear "C4", # flake8-comprehensions @@ -132,6 +135,7 @@ select = [ "UP", # pyupgrade "W", # pycodestyle warning "YTT", # flake8-2020 + "NPY201", #numpy 2.0 ] ignore = [ "B023", # Function definition does not bind loop variable @@ -155,10 +159,8 @@ ignore = [ ] pydocstyle.convention = "google" isort.split-on-trailing-comma = false -src = ["src"] - -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] "tasks.py" = ["D"] "tests/*" = ["D"]