-
Notifications
You must be signed in to change notification settings - Fork 3
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
Modernize ruff #342
Modernize ruff #342
Conversation
@@ -362,7 +364,9 @@ def get_occweb_dir(path, timeout=30, cache=False, user=None, password=None): | |||
astropy Table | |||
Table of directory entries | |||
""" | |||
html = get_occweb_page(path, timeout=timeout, cache=cache) | |||
html = get_occweb_page( | |||
path, timeout=timeout, cache=cache, user=user, password=password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a real bug, the user
and password
kwargs were being ignored.
@@ -28,7 +28,7 @@ def default(self, obj): | |||
if isinstance(obj, Decimal): | |||
return str(obj) | |||
elif isinstance(obj, datetime.datetime): | |||
assert settings.TIME_ZONE == "UTC" | |||
assert settings.TIME_ZONE == "UTC" # noqa: S101 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code was just copied from somewhere else so leave it be.
@@ -733,7 +733,7 @@ def get_overlap_mask(times: np.ndarray, intervals: Table): | |||
|
|||
|
|||
@functools.lru_cache(maxsize=1) | |||
def get_command_sheet_exclude_intervals(state_key: str = None) -> Table: | |||
def get_command_sheet_exclude_intervals() -> Table: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The state_key
kwarg must be a leftover since the function does not use it and the call to this function does not provide it.
1b8103d
to
5f49591
Compare
Description
ruff.toml
andruff-base.toml
.Requires
Interface impacts
None
Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
No functional testing.