From 33bddebd8b4377b33640b0fa5ebeccedc30fe2de Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 23 Sep 2026 05:34:50 +0000 Subject: [PATCH 1/3] Fix ruff config deprecation and PLR0917 warning Co-authored-by: dfm <350282+dfm@users.noreply.github.com> --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e124766..c6faac6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,6 +57,9 @@ line-length = 88 [tool.ruff] line-length = 88 target-version = "py39" +exclude = ["demos/*"] + +[tool.ruff.lint] select = ["F", "I", "E", "W", "YTT", "B", "Q", "PLE", "PLR", "PLW"] ignore = [ "E402", # Allow module level imports below top of file @@ -64,9 +67,9 @@ ignore = [ "PLW0603", # Allow global statements "PLR0912", # Allow many branches "PLR0913", # Allow many arguments to function calls + "PLR0917", # Allow many positional arguments to function calls "PLR2004", # Allow magic numbers ] -exclude = ["demos/*"] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["fsps"] From 9daf03d136e6d0287eb542118142ae988c7cd685 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 23 Sep 2026 05:37:15 +0000 Subject: [PATCH 2/3] Scope PLR0917 suppression to the specific function Co-authored-by: dfm <350282+dfm@users.noreply.github.com> --- pyproject.toml | 1 - src/fsps/fsps.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c6faac6..be267bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,6 @@ ignore = [ "PLW0603", # Allow global statements "PLR0912", # Allow many branches "PLR0913", # Allow many arguments to function calls - "PLR0917", # Allow many positional arguments to function calls "PLR2004", # Allow magic numbers ] diff --git a/src/fsps/fsps.py b/src/fsps/fsps.py index 74c2f96..5012b22 100644 --- a/src/fsps/fsps.py +++ b/src/fsps/fsps.py @@ -842,7 +842,7 @@ def _ssp_weights(self): driver.get_ssp_weights(weights) return weights - def _get_stellar_spectrum( + def _get_stellar_spectrum( # noqa: PLR0917 self, mact, logt, From ba7667e437200fe57ec5cb423520e1a41798a49f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 23 Sep 2026 05:40:16 +0000 Subject: [PATCH 3/3] Update ruff pre-commit hook to v0.16.8 Co-authored-by: dfm <350282+dfm@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 689214e..1c603fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: hooks: - id: black-jupyter - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.22" + rev: "v0.16.8" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix]