Skip to content

fix few lint issues#18

Merged
tisnik merged 3 commits intolightspeed-core:mainfrom
asamal4:some-lint-fix1
Jul 10, 2025
Merged

fix few lint issues#18
tisnik merged 3 commits intolightspeed-core:mainfrom
asamal4:some-lint-fix1

Conversation

@asamal4
Copy link
Collaborator

@asamal4 asamal4 commented Jul 10, 2025

  • fixed mypy issues
  • moved pylint disable comment to correct line.

Copy link
Contributor

@tisnik tisnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks ok!

@tisnik
Copy link
Contributor

tisnik commented Jul 10, 2025

@VladimirKadlec PTAL

@asamal4 asamal4 force-pushed the some-lint-fix1 branch 3 times, most recently from 69f6555 to a86fbc9 Compare July 10, 2025 11:29
@asamal4
Copy link
Collaborator Author

asamal4 commented Jul 10, 2025

@tisnik @VladimirKadlec
I tried to remove errors as much as possible without changing logic.
Now pyright failures are still there (will check later, pyright seems to be missing right type check).

PTAL and merge..

Copy link
Contributor

@VladimirKadlec VladimirKadlec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor comments, looks good 💪

def _get_recent_response(
self, question, recent_resp_df, provider, model, eval_mode
): # pylint: disable=R0913,R0917
def _get_recent_response( # pylint: disable=R0913,R0917
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is disabling pylint checks still needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes..

  • either we need to change threshold for arguments in pylint setting.
  • or restructure the code/logic to reduce number of parameters

def calculate_scores(self, query, answer, response): # pylint: disable=R0914
def calculate_scores( # type: ignore[no-untyped-def]
self, query: str, answer: str, response: str
): # pylint: disable=R0914
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is disabling pylint checks still needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as above.

@tisnik tisnik merged commit fbd63fe into lightspeed-core:main Jul 10, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants