Skip to content

Stylistic adjustments for python scripts #8233

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

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

jpodivin
Copy link
Contributor

@jpodivin jpodivin commented Jul 1, 2024

These things were popping on my linter and bothering me way too much.
None of them should impact functionality of the code, they may make it more readable however.

  • Superfluous parens in conditionals were removed.
  • Unused args in function were removed.
  • Replaced unused idx var with _
  • Initializing file_format and format_version attributes
  • Renaming constant to capitals
  • Preventing redefinition of the f var

@github-actions github-actions bot added the python python script changes label Jul 1, 2024
@mofosyne mofosyne added the Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix label Jul 3, 2024
* Superflous parens in conditionals were removed.
* Unused args in function were removed.
* Replaced unused `idx` var with `_`
* Initializing file_format and format_version attributes
* Renaming constant to capitals
* Preventing redefinition of the `f` var

Signed-off-by: Jiri Podivin <[email protected]>
@mofosyne mofosyne merged commit 566daa5 into ggml-org:master Jul 22, 2024
9 checks passed
@jpodivin jpodivin deleted the pystyle branch July 22, 2024 14:10
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Jul 27, 2024
* Superflous parens in conditionals were removed.
* Unused args in function were removed.
* Replaced unused `idx` var with `_`
* Initializing file_format and format_version attributes
* Renaming constant to capitals
* Preventing redefinition of the `f` var

Signed-off-by: Jiri Podivin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python python script changes Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants