-
Notifications
You must be signed in to change notification settings - Fork 18
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
Handle ruff warnings #215
Handle ruff warnings #215
Conversation
b000aef
to
df765bf
Compare
df765bf
to
5495fc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some are a bit pedantic 😄
But let's take it from here and clean-up the # noqa
s over time.
@@ -80,7 +80,7 @@ def __update_values(self, git_repo: GitRepo) -> dict[str, Any]: | |||
single_commit = args.single_commit or args.commit_message | |||
full_file_path = git_repo.get_full_file_path(args.file) | |||
updated_values = {} | |||
for key, value in args.values.items(): | |||
for key, value in args.values.items(): # noqa: PD011 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like a false positive 🤔
@@ -4,7 +4,7 @@ | |||
|
|||
|
|||
def create_tmp_dir() -> str: | |||
tmp_dir = f"/tmp/gitopscli/{uuid.uuid4()}" | |||
tmp_dir = f"/tmp/gitopscli/{uuid.uuid4()}" # noqa: S108 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaning these up might be a step towards windows support (#187)
current = work_path.copy().items() | ||
for key, value in current: | ||
for key, _ in current: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could just drop items()
to iterate over the keys
🎉 This issue has been resolved in version 5.9.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
A lot of ruff warning cleanup. May be subject to discussions.