Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #277

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ repos:
args: ['--fix=no']

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.1
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
rev: 1.8.2
hooks:
- id: bandit
args: [--skip, "B101", --recursive, pyuvdata]
6 changes: 3 additions & 3 deletions src/pyradiosky/skymodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,9 @@ def _set_spectral_type_params(self, spectral_type):
"""Set parameters depending on spectral_type."""
self.spectral_type = spectral_type

assert (
spectral_type in self._spectral_type.acceptable_vals
), f"spectral_type must be one of: {self._spectral_type.acceptable_vals}"
assert spectral_type in self._spectral_type.acceptable_vals, (
f"spectral_type must be one of: {self._spectral_type.acceptable_vals}"
)
if spectral_type == "spectral_index":
self._spectral_index.required = True
self._reference_frequency.required = True
Expand Down
Loading