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]