Skip to content

Commit

Permalink
issue #26: linting errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Nov 22, 2024
1 parent 13eff20 commit 348a70e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/alloy/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"insecureSkipVerify": true
}
}
}
}
2 changes: 1 addition & 1 deletion dockerfiles/tempo/tempo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ metrics_generator:

# Global override configuration.
overrides:
metrics_generator_processors: ['service-graphs', 'span-metrics','local-blocks'] # The types of metrics generation to enable for each tenant.
metrics_generator_processors: ['service-graphs', 'span-metrics','local-blocks'] # The types of metrics generation to enable for each tenant.

Check failure on line 94 in dockerfiles/tempo/tempo.yaml

View workflow job for this annotation

GitHub Actions / yaml-check / yaml-lint-check

94:67 [commas] too few spaces after comma

Check failure on line 94 in dockerfiles/tempo/tempo.yaml

View workflow job for this annotation

GitHub Actions / yaml-check / yaml-lint-check

94:83 [comments] too few spaces before comment
Empty file added github-metrics/main.py
Empty file.
Empty file added github-metrics/requirements.txt
Empty file.
6 changes: 2 additions & 4 deletions remove-previous-image/remove_previous_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import os
import requests
import sys
from requests.auth import HTTPBasicAuth

"""
Expand All @@ -17,7 +16,7 @@ def delete_old_image(version_id, org, headers, auth):
url_delete_previous_version = f"https://api.github.com/orgs/{org}/packages/container/{container_name}/versions/{version_id}"
response = requests.delete(url_delete_previous_version, headers=headers, auth=auth)
if response.status_code == 204:
print(f'Previous container deleted!')
print('Previous container deleted!')
else:
raise Exception(f"Error deleting the previous container: {response.status_code} {response.text}")

Expand Down Expand Up @@ -81,12 +80,11 @@ def print_console(message):
"""
If there's no previous image to delete, we will stop the script (sys.exit()).
"""
print_console(f"Looking for the previous tag...")
print_console("Looking for the previous tag...")
try:
previous_tag, version_id = find_previous_container_tag(response.json(), unique_tag_formatted)
except Exception as e:
print(e)
sys.exit()
print("Done!")

print_console(f"Deleting the previous container with tag ({previous_tag}) and version_id {version_id}...")
Expand Down
2 changes: 1 addition & 1 deletion webtop-template/webtop_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ def create_github_pr(username, gh_access_token):
username = os.getenv("USERNAME")

render_template(username)
create_github_pr(username, gh_access_token)
create_github_pr(username, gh_access_token)

0 comments on commit 348a70e

Please sign in to comment.