Skip to content
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

Merged
merged 32 commits into from
Nov 8, 2023
Merged

Handle ruff warnings #215

merged 32 commits into from
Nov 8, 2023

Conversation

patrit
Copy link
Contributor

@patrit patrit commented Nov 5, 2023

A lot of ruff warning cleanup. May be subject to discussions.

Copy link
Member

@christiansiegel christiansiegel left a 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 # noqas 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
Copy link
Member

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
Copy link
Member

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)

Comment on lines 81 to +82
current = work_path.copy().items()
for key, value in current:
for key, _ in current:
Copy link
Member

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

@christiansiegel christiansiegel merged commit 55adc20 into master Nov 8, 2023
2 checks passed
@christiansiegel christiansiegel deleted the handle_ruff_warnings branch November 8, 2023 18:43
Copy link

🎉 This issue has been resolved in version 5.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants