From 04b0b4964fd3d0baafa4bf716b1d8453be5f7479 Mon Sep 17 00:00:00 2001 From: Akhileswar Date: Tue, 21 Oct 2025 19:32:35 +0530 Subject: [PATCH 1/2] updated yml file --- .github/workflows/python-test.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 2541e75..4f02815 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -1,18 +1,19 @@ name: Python Auto Test -on: [push] # means: run this every time I push code to GitHub +on: [push] jobs: - test: # name of the job - runs-on: ubuntu-latest # the environment (like a virtual computer) + check: + runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 # step 1: get your code from GitHub + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v5 # step 2: install Python + uses: actions/setup-python@v5 with: - python-version: '3.10' # version to use + python-version: '3.10' - - name: Run a test command - run: python --version # step 3: run your Python command + - name: Check Python Syntax + run: | + python -m compileall . From 8d71fe3a6c09fad51375bd9e311a5723b6a7f8b6 Mon Sep 17 00:00:00 2001 From: Akhileswar Date: Tue, 21 Oct 2025 19:48:35 +0530 Subject: [PATCH 2/2] updated and added yml files --- Weather.py => 50_Weather.py | 0 config.yml | 19 +++++++++++++++++++ file.txt | 6 ------ file1.txt | 3 --- file2.txt | 3 --- iss.txt | 16 ---------------- load_config.py | 21 +++++++++++++++++++++ sample.txt | 2 -- 8 files changed, 40 insertions(+), 30 deletions(-) rename Weather.py => 50_Weather.py (100%) create mode 100644 config.yml delete mode 100644 file.txt delete mode 100644 file1.txt delete mode 100644 file2.txt delete mode 100644 iss.txt create mode 100644 load_config.py delete mode 100644 sample.txt diff --git a/Weather.py b/50_Weather.py similarity index 100% rename from Weather.py rename to 50_Weather.py diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..f1f1abf --- /dev/null +++ b/config.yml @@ -0,0 +1,19 @@ +# config.yaml - Professional Python Practice Settings + +user: + name: "Akhileswar Kamale" + github: "https://github.com/Akhileswar6" + linkedin: "https://www.linkedin.com/in/akhileswar-kamale" + +python: + version: "3.10" + show_welcome_message: true + +folders: + basics: true + intermediate: true + problems: true + +settings: + display_output: true + log_errors: true diff --git a/file.txt b/file.txt deleted file mode 100644 index 8bbb0bd..0000000 --- a/file.txt +++ /dev/null @@ -1,6 +0,0 @@ -The only way to do great work is to love what you do. - Steve Jobs -Success is not final, failure is not fatal: It is the courage to continue that counts. - Winston Churchill -Believe you can and you're halfway there. - Theodore Roosevelt -Don't watch the clock; do what it does. Keep going. - Sam Levenson -Your time is limited, so don't waste it living someone else's life. - Steve Jobs -The best way to predict the future is to invent it. - Alan Kay diff --git a/file1.txt b/file1.txt deleted file mode 100644 index 6da4d3e..0000000 --- a/file1.txt +++ /dev/null @@ -1,3 +0,0 @@ -First line -Second line -Third line diff --git a/file2.txt b/file2.txt deleted file mode 100644 index 8ee5455..0000000 --- a/file2.txt +++ /dev/null @@ -1,3 +0,0 @@ -Line A -Line B -Line C diff --git a/iss.txt b/iss.txt deleted file mode 100644 index e5d3688..0000000 --- a/iss.txt +++ /dev/null @@ -1,16 +0,0 @@ -There are currently 12 astronauts on the ISS: - -Oleg Kononenko - onboard -Nikolai Chub - onboard -Tracy Caldwell Dyson - onboard -Matthew Dominick - onboard -Michael Barratt - onboard -Jeanette Epps - onboard -Alexander Grebenkin - onboard -Butch Wilmore - onboard -Sunita Williams - onboard -Li Guangsu - onboard -Li Cong - onboard -Ye Guangfu - onboard - -Your current lat / long is: [13.6355, 79.4199] diff --git a/load_config.py b/load_config.py new file mode 100644 index 0000000..1b6967a --- /dev/null +++ b/load_config.py @@ -0,0 +1,21 @@ +import yaml + +# Load YAML config +with open("config.yml", "r") as file: + config = yaml.safe_load(file) + +# Example: display user info +user = config["user"] +print(f"Hello, {user['name']}!") +print(f"GitHub: {user['github']}") +print(f"LinkedIn: {user['linkedin']}") + +# Example: check active folders +folders = config["folders"] +for folder, active in folders.items(): + status = "active" if active else "inactive" + print(f"{folder} folder is {status}") + +# Example: conditional message +if config["python"]["show_welcome_message"]: + print("\nWelcome to Python Practice Repository!\n") diff --git a/sample.txt b/sample.txt deleted file mode 100644 index 86c2288..0000000 --- a/sample.txt +++ /dev/null @@ -1,2 +0,0 @@ -Hello World! -Hello GeeksforGeeks \ No newline at end of file