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

[Ignore] POC dependabot #122

Closed
wants to merge 4 commits into from
Closed

[Ignore] POC dependabot #122

wants to merge 4 commits into from

Conversation

dubloom
Copy link
Contributor

@dubloom dubloom commented Sep 26, 2024

No description provided.

@dubloom dubloom requested a review from a team as a code owner September 26, 2024 09:40
@dubloom dubloom requested review from dmehala and removed request for a team September 26, 2024 09:40

if get_nginx_release_versions.returncode != 0:
print("Could not get nginx versions:", stderr.decode())
exit()

Choose a reason for hiding this comment

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

🔴 Code Quality Violation

do not use exit() (...read more)

Use sys.exit() instead of exit(). Exit is a builtin and done mostly for the console. sys.exit() is done for program with a proper return argument (see documentation).

Learn More

View in Datadog  Leave us feedback  Documentation

return tuple(map(int, version.split('.'))) > tuple(map(int, LATEST_VERSION_SUPPORTED.split('.')))

def update_nginx_version(source_file, destination_file, new_version):
with open(source_file, 'r') as file:

Choose a reason for hiding this comment

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

🔴 Code Quality Violation

Suggested change
with open(source_file, 'r') as file:
with open(source_file) as file:
file with read-only defined (...read more)

If a flag is opened for read-only, no need to put a flag to open the file.

Learn More

View in Datadog  Leave us feedback  Documentation

@dubloom dubloom closed this Sep 30, 2024
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.

1 participant