Skip to content

Commit

Permalink
Address ruff N802
Browse files Browse the repository at this point in the history
  • Loading branch information
shatakshiiii committed Jun 3, 2024
1 parent d1b42e5 commit c200f02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ ignore = [
'FBT001', # Boolean positional arg in function definition
'FBT002', # Boolean default value in function definition
'FBT003', # Boolean positional value in function call
'N802', # Function name `formatTime` should be lowercase
'N806', # Variable `FType` in function should be lowercase
'N812', # Lowercase `__version_collection_doc_cache__` imported as non-lowercase `VERSION_CDC`
'N813', # Camelcase `Action` imported as lowercase `stdout_action`
Expand Down
6 changes: 5 additions & 1 deletion src/ansible_navigator/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
self._time_zone = kwargs.pop("time_zone")
super().__init__(*args, **kwargs)

def formatTime(self, record: logging.LogRecord, _datefmt: str | None = None) -> str:
def formatTime( # noqa: N802
self,
record: logging.LogRecord,
_datefmt: str | None = None,
) -> str:
"""Format the log timestamp.
:param record: The log record
Expand Down

0 comments on commit c200f02

Please sign in to comment.