From bb57cc4830c65109c391f5428968013d40f6b6bc Mon Sep 17 00:00:00 2001 From: Walter Simson Date: Wed, 20 Nov 2024 08:19:21 -0800 Subject: [PATCH] Numpy v2.0 ruff linting (#512) * Update pyproject.toml * migrate to new official ruff action --- .github/workflows/ruff.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index e1e4c783..91b7dba4 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -6,4 +6,4 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@v3 - - uses: chartboost/ruff-action@v1 + - uses: astral-sh/ruff-action@v1 diff --git a/pyproject.toml b/pyproject.toml index 7216d536..9be12de6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,6 +98,7 @@ omit = [ line-length = 140 # F821 needed to avoid false-positives in nested functions, F722 due to jaxtyping lint.ignore = ["F821", "F722"] +lint.select = ["NPY201"] [tool.ruff.lint.per-file-ignores] # ksource.py contains a lot of non-ported Matlab code that is not usable. "kwave/ksource.py" = ["F821"]