Skip to content

Commit

Permalink
Add pylint badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed May 27, 2024
1 parent 368c814 commit 180add9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,16 @@ jobs:
run: |
pip install pylint
pylint api/main.py api/steam_stats.py api/steam_workshop.py
- name: Generate Pylint Badge
uses: Silleellie/pylint-github-action@v2
with:
lint-path: api
python-version: 3.x
requirements-path: requirements.txt
readme-path: README.md
badge-text: PyLint
color-bad-score: red
color-ok-score: orange
color-good-score: yellow
color-perfect-score: brightgreen
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 🛠️Work in Progress 🚧|🚧 Please come back later⚒️
[![Steam Stats](https://github.com/Nicconike/Steam-Stats/actions/workflows/steam-stats.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/steam-stats.yml)
[![Quality Check](https://github.com/Nicconike/Steam-Stats/actions/workflows/quality-check.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/quality-check.yml)
![Pylint]()
[![Visitor Badge](https://badges.pufler.dev/visits/nicconike/steam-stats)](https://badges.pufler.dev)

<!-- Steam-Stats start -->
Expand Down
6 changes: 3 additions & 3 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def generate_svg_for_recently_played_games(player_data):
print("No game data available to display")

# Render the chart to an SVG file
bar_chart.render_to_file("../assets/recently_played_games.svg")
bar_chart.render_to_file("assets/recently_played_games.svg")

return (
"![Steam Games Stats]("
Expand Down Expand Up @@ -89,7 +89,7 @@ def generate_svg_for_steam_workshop(workshop_stats):
autosize=True,
margin={"pad": 0}
)
fig.write_image("../assets/steam_workshop_stats.svg")
fig.write_image("assets/steam_workshop_stats.svg")

return (
"![Steam Workshop Stats]("
Expand All @@ -98,7 +98,7 @@ def generate_svg_for_steam_workshop(workshop_stats):
)


def update_readme(markdown_data, start_marker, end_marker, readme_path="../README.md"):
def update_readme(markdown_data, start_marker, end_marker, readme_path="README.md"):
"""Updates the README.md file with the provided Markdown content within specified markers."""
# Read the current README content
with open(readme_path, "r", encoding="utf-8") as file:
Expand Down

1 comment on commit 180add9

@vercel
Copy link

@vercel vercel bot commented on 180add9 May 27, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.