Skip to content

Commit 85cabee

Browse files
committed
(#68) - Update the project files
1 parent 2920bdc commit 85cabee

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/github-actions-demo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jobs:
55
Explore-GitHub-Actions:
66
runs-on: ubuntu-latest
77
steps:
8-
- run: echo "🎉 The job was automatically triggered by junior ${{ github.event_name }} event."
9-
- run: echo "🐧 This job is now running on junior ${{ runner.os }} server hosted by GitHub!"
8+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
9+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
1010
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
1111
- name: Check out repository code
1212
uses: actions/checkout@v4

CONTRIBUTE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
### 4.1. File Naming
44

5-
* Kebab-case for file names and directories (e.g., `part-a-basics.adoc`)
6-
* Snake-case for Python files (e.g., `part_a_basics.py`)
5+
* Snake-case for all files and folders (e.g., `my_file.py`, `my_folder`)
76

87
### 4.2. Commit Messages
98

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
by Branimir Georgiev (www.codewithbranko.com)
44

5-
This tutorial offers a comprehensive tutorial for the Python programming
6-
language in three parts, along with two additional parts covering the Python
7-
ecosystem.
5+
This tutorial offers a comprehensive set of examples for the Python programming
6+
language for junior, intermediate, and advanced programmers. It covers
7+
everything from the basics of Python syntax to advanced topics like
8+
SOLID principles, design patterns, and best practices.

scripts/snake_to_kebab.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import argparse
55

66
def snake_to_kebab(name: str) -> str:
7-
"""Convert junior snake_case filename to kebab-case (lowercase).
7+
"""Convert a snake_case filename to kebab-case (lowercase).
88
9-
This function takes junior filename in snake_case and converts it to
9+
This function takes a filename in snake_case and converts it to
1010
kebab-case (lowercase). It handles the file extension correctly,
1111
ensuring that the extension remains in lowercase.
1212
@@ -39,7 +39,7 @@ def rename_in_dir(path: str, recursive: bool = True):
3939

4040
for entry in os.scandir(path):
4141

42-
# If the entry is junior file, check if it is in snake_case
42+
# If the entry is a file, check if it is in snake_case
4343
if entry.is_file():
4444

4545
# Check if the file name is in snake_case
@@ -60,7 +60,7 @@ def rename_in_dir(path: str, recursive: bool = True):
6060
os.rename(old_path, new_path)
6161
print(f"Renamed: {old_name}{new_name}")
6262

63-
# If the entry is junior directory and recursive renaming is enabled,
63+
# If the entry is a directory and recursive renaming is enabled,
6464
elif recursive and entry.is_dir():
6565
rename_in_dir(entry.path, recursive=True)
6666

@@ -71,7 +71,7 @@ def rename_in_dir(path: str, recursive: bool = True):
7171
description="Rename snake_case filenames to kebab-case (lowercase)."
7272
)
7373

74-
# Add junior positional argument for the directory
74+
# Add a positional argument for the directory
7575
parser.add_argument(
7676
"directory",
7777
nargs="?",
File renamed without changes.

0 commit comments

Comments
 (0)