Skip to content

Commit 59ee5e2

Browse files
authored
Merge branch 'main' into script/weather_notifier
2 parents b1dbb8e + 4d3ad1d commit 59ee5e2

File tree

8 files changed

+40
-27
lines changed

8 files changed

+40
-27
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99
- name: Set up Python
10-
uses: actions/setup-python@v2
10+
uses: actions/setup-python@v5
1111
with:
12-
python-version: '3.8'
12+
python-version: '3.12'
1313
- name: Install flake8
1414
run: |
1515
python -m pip install --upgrade pip

.github/workflows/greetings.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: "Hey soon we'll review your Issue, stay tuned 😊"
16+
pr-message: "Congratulations!! 🎉 @${{ github.actor }} for making your first PR. We will review the changes soon and merge finally.😊 Do give a star ⭐ meanwhile if you like this project."

connect_strongest_wifi/connect_strongest_wifi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def main():
6363

6464
print(f"\nYour {len(networks)} Strongest Networks are :")
6565
for key, network in enumerate(networks):
66-
print(f"\t[{key+1}] {network[0]}, Signal: {network[1]}%")
66+
print(f"\t[{key + 1}] {network[0]}, Signal: {network[1]}%")
6767

6868
choice = input("\nPlease enter your choice : \n\t>> ").strip()
6969
if not (choice.isdigit() and 1 <= int(choice) <= len(networks)):

crypto_converter/cryptoconvert.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ def main():
108108
return
109109
elif result == 1:
110110
continue
111-
print(f"""\n{'-'*42}
111+
print(f"""\n{'-' * 42}
112112
{crypto_value} {crypto_type.upper()} in {fiat_type.upper()} is --> {result}
113-
{'-'*42}""")
113+
{'-' * 42}""")
114114

115115
elif user_inp == "2":
116116
fiat_type = input("\nEnter the Fiat Money Type : ")
@@ -134,9 +134,9 @@ def main():
134134
return
135135
elif result == 1:
136136
continue
137-
print(f"""\n{'-'*42}
137+
print(f"""\n{'-' * 42}
138138
{fiat_value} {fiat_type.upper()} in {crypto_type.upper()} is --> {result}
139-
{'-'*42}""")
139+
{'-' * 42}""")
140140

141141
elif user_inp == "Q" or user_inp == "q":
142142
return

file_search/filesearch.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ def get_file_count(self, path, is_folder):
2424
self.file_count += len(files)
2525

2626
def __perform_search(
27-
self,
28-
search_term,
29-
start_dir,
30-
is_folder,
31-
disable_case,
32-
show_bar
27+
self,
28+
search_term,
29+
start_dir,
30+
is_folder,
31+
disable_case,
32+
show_bar
3333
):
3434
results = []
3535
for root, dirs, files in os.walk(start_dir):
@@ -57,12 +57,12 @@ def __perform_search(
5757
return results
5858

5959
def search(
60-
self,
61-
search_term,
62-
start_dir,
63-
is_folder=False,
64-
disable_case=False,
65-
show_bar=True
60+
self,
61+
search_term,
62+
start_dir,
63+
is_folder=False,
64+
disable_case=False,
65+
show_bar=True
6666
):
6767
self.file_count = 0
6868
self.get_file_count(start_dir, is_folder)
@@ -83,10 +83,10 @@ def search(
8383

8484
if not is_folder:
8585
print(
86-
f"\n\n[INFO] Searched {self.file_count:,} files in {(end_time-start_time).total_seconds()} seconds")
86+
f"\n\n[INFO] Searched {self.file_count:,} files in {(end_time - start_time).total_seconds()} sec")
8787
else:
8888
print(
89-
f"\n\n[INFO] Searched {self.file_count:,} folders in {(end_time-start_time).total_seconds()} seconds")
89+
f"\n\n[INFO] Searched {self.file_count:,} folders in {(end_time - start_time).total_seconds()} sec")
9090

9191
return result
9292

pdf_watermarkadder/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from reportlab.lib.pagesizes import A4
55
from PyPDF2 import PdfFileReader, PdfFileWriter
66

7-
87
print("Enter file names with its extenstion!")
98

109

video_cropper/video_cropper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ def to_int(a, rel_to):
1111
If string contains "%" it converts it to a float and multiplies by rel_to
1212
EG: 50% -> 0.5*rel_to
1313
'''
14-
15-
if isinstance(a,int):
14+
if isinstance(a, int):
1615
return a
1716
else:
1817
if '%' in a:

watermark_maker/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from reportlab.lib.pagesizes import A4
55
from PyPDF2 import PdfFileReader, PdfFileWriter
66

7-
87
print("Enter file names with its extenstion!")
98

109

@@ -23,7 +22,7 @@ def makepdf():
2322
pdf_file = input("PDF file: ")
2423
watermark = 'watermark.pdf'
2524
merged = "finalDraft.pdf"
26-
with open(pdf_file, "rb") as input_file,\
25+
with open(pdf_file, "rb") as input_file, \
2726
open(watermark, "rb") as watermark_file:
2827
input_pdf = PdfFileReader(input_file)
2928
watermark_pdf = PdfFileReader(watermark_file)

0 commit comments

Comments
 (0)