From 8296e7010cd092c03aa1ecedb1d418a20a0add05 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 5 Jul 2024 08:39:35 +0200 Subject: [PATCH] chore: enable NPY ruff rules --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a0dc7aa60..3e04f4aad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,13 +138,14 @@ extend-select = [ # "EXE", # flake8-executable # "C4", # flake8-comprehensions "YTT", # flake8-2020 - "S", # flake8-bandit + "S", # flake8-bandit # "DTZ", # flake8-datetimez # "RSE", # flake8-raise # "TCH", # flake8-type-checking "PTH", # flake8-use-pathlib # "RUF", # ruff "ASYNC", # flake8-async + "NPY", # numpy ] extend-ignore = [ @@ -155,6 +156,7 @@ extend-ignore = [ "S603", # `subprocess` call: check for execution of untrusted input "S607", # Starting a process with a partial executable path "S608", # Possible SQL injection vector through string-based query construction + "NPY002", # Numpy legacy random generator ] [tool.ruff.lint.mccabe]