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] diff --git a/pyproject.toml b/pyproject.toml index e124766..be267bf 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 @@ -66,7 +69,6 @@ ignore = [ "PLR0913", # Allow many arguments to function calls "PLR2004", # Allow magic numbers ] -exclude = ["demos/*"] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["fsps"] 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,