Skip to content
Open
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
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ ignore = [
]
"src/**" = [
"S101", # todo: Use of `assert` detected
"S105", "S106", "S107", # todo: Possible hardcoded password: ...
"S113", # todo: Probable use of requests call without timeout
"S301", # todo: `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
"S324", # todo: Probable use of insecure hash functions in `hashlib`
Expand All @@ -106,7 +105,6 @@ ignore = [
]
"tests/**" = [
"S101", # Use of `assert` detected
"S105", "S106", # todo: Possible hardcoded password: ...
"S301", # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
"S113", # todo: Probable use of requests call without timeout
"S311", # todo: Standard pseudo-random generators are not suitable for cryptographic purposes
Expand Down
2 changes: 1 addition & 1 deletion src/lightning/pytorch/callbacks/lr_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _extract_lr(self, param_group: dict[str, Any], name: str) -> dict[str, Any]:
self.lrs[name].append(lr)
return {name: lr}

def _remap_keys(self, names: list[list[str]], token: str = "/pg1") -> None:
def _remap_keys(self, names: list[list[str]], token: str = "/pg1") -> None: # noqa: S107
"""This function is used the remap the keys if param groups for a given optimizer increased."""
for group_new_names in names:
for new_name in group_new_names:
Expand Down
5 changes: 4 additions & 1 deletion src/lightning/pytorch/profilers/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def _rank_zero_info(self, *args: Any, **kwargs: Any) -> None:
log.info(*args, **kwargs)

def _prepare_filename(
self, action_name: Optional[str] = None, extension: str = ".txt", split_token: str = "-"
self,
action_name: Optional[str] = None,
extension: str = ".txt",
split_token: str = "-", # noqa: S107
) -> str:
args = []
if self._stage is not None:
Expand Down
Loading