Skip to content

Commit 279b53e

Browse files
committed
ignore
1 parent 6765901 commit 279b53e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ ignore = [
9191
]
9292
"src/**" = [
9393
"S101", # todo: Use of `assert` detected
94-
"S105", "S106", "S107", # todo: Possible hardcoded password: ...
9594
"S113", # todo: Probable use of requests call without timeout
9695
"S301", # todo: `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
9796
"S324", # todo: Probable use of insecure hash functions in `hashlib`

src/lightning/pytorch/callbacks/lr_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _extract_lr(self, param_group: dict[str, Any], name: str) -> dict[str, Any]:
241241
self.lrs[name].append(lr)
242242
return {name: lr}
243243

244-
def _remap_keys(self, names: list[list[str]], token: str = "/pg1") -> None:
244+
def _remap_keys(self, names: list[list[str]], token: str = "/pg1") -> None: # noqa: S107
245245
"""This function is used the remap the keys if param groups for a given optimizer increased."""
246246
for group_new_names in names:
247247
for new_name in group_new_names:

src/lightning/pytorch/profilers/profiler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ def _rank_zero_info(self, *args: Any, **kwargs: Any) -> None:
7777
log.info(*args, **kwargs)
7878

7979
def _prepare_filename(
80-
self, action_name: Optional[str] = None, extension: str = ".txt", split_token: str = "-"
80+
self,
81+
action_name: Optional[str] = None,
82+
extension: str = ".txt",
83+
split_token: str = "-", # noqa: S107
8184
) -> str:
8285
args = []
8386
if self._stage is not None:

0 commit comments

Comments
 (0)