From 21a2a36fb54393d7d67180ae00b2ae7ae6715459 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Wed, 27 Nov 2024 13:45:11 -0500 Subject: [PATCH] Add NPY check to sync with romancal --- docs/conf.py | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 9f810d01..57387507 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,7 +38,7 @@ from importlib_metadata import distribution try: - numpy.random.seed(int(os.environ["SOURCE_DATE_EPOCH"])) + numpy.random.seed(int(os.environ["SOURCE_DATE_EPOCH"])) # noqa: NPY002 except KeyError: pass diff --git a/pyproject.toml b/pyproject.toml index 35c8c6a0..0b622e40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,6 +110,7 @@ extend-select = [ "B", # BugBear "S", # Bandit "RUF", # ruff specific + "NPY", # numpy specific ] [tool.ruff.lint.per-file-ignores]