Skip to content

Commit f127368

Browse files
committed
Ruff fix
1 parent e2cf5e3 commit f127368

43 files changed

Lines changed: 48 additions & 69 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Automated Scheduled Call Reminders/schedular.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from caller import search
66

7-
87
sched = BlockingScheduler()
98

109
# Schedule job_function to be called every two hours

Cat/test_cat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import unittest
55
from pathlib import Path
66

7-
87
CAT_SCRIPT = Path(__file__).with_name("cat.py")
98

109

Google_Image_Downloader/image_grapper.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from bs4 import BeautifulSoup
1515
from create_dir import create_directory
1616

17-
1817
ssl._create_default_https_context = ssl._create_unverified_context
1918

2019
GOOGLE_IMAGE = (
@@ -58,7 +57,7 @@ def search_for_image():
5857

5958
results = sew.findAll("div", {"class": "rg_meta"})
6059
for re in results:
61-
(link, Type) = (json.loads(re.text)["ou"], json.loads(re.text)["ity"])
60+
link, Type = (json.loads(re.text)["ou"], json.loads(re.text)["ity"])
6261
images.append(link)
6362
counter = 0
6463
for re in images:
@@ -132,38 +131,32 @@ def set_directory():
132131

133132
##############
134133
def quit():
135-
print(
136-
"""
134+
print("""
137135
-------------------------***Thank You For Using***-------------------------
138-
"""
139-
)
136+
""")
140137
return False
141138

142139

143140
run = True
144141

145-
print(
146-
"""
142+
print("""
147143
***********[First Creating Folder To Save Your Images}***********
148-
"""
149-
)
144+
""")
150145

151146
create_directory("Images")
152147
DEFAULT_DIRECTORY = pardir + "\\Images"
153148
chdir(DEFAULT_DIRECTORY)
154149
count = 0
155150
while run:
156-
print(
157-
"""
151+
print("""
158152
-------------------------WELCOME-------------------------
159153
1. Search for image
160154
2. Download Wallpapers 1080p
161155
3. View Images in your directory
162156
4. Set directory
163157
5. Exit
164158
-------------------------*******-------------------------
165-
"""
166-
)
159+
""")
167160
choice = input()
168161
try:
169162
# Via eval() let `str expression` to `function`

Image-watermarker/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import pyglet
77
from tkinter import colorchooser
88

9-
109
# ------------------- Create Window -----------------
1110
pyglet.font.add_directory("fonts")
1211

Infix_to_Postfix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Python program to convert infix expression to postfix
22

3+
34
# Class to convert the expression
45
class Conversion:
56
# Constructor to initialize the class variables

JARVIS/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from pathlib import Path
22

3-
43
BASE_DIR = Path(__file__).resolve().parent.parent
54

65
OPENAI_API_KEY = ""

JARVIS/jarvis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
from jarvis_assistant.cli import main
44

5-
65
if __name__ == "__main__":
76
main(sys.argv)

JARVIS/safety.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from .text_utils import normalize_text
44

5-
65
DANGEROUS_WORDS = {
76
"install",
87
"uninstall",

Job_scheduling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def feasible(self, profit_jobs: List[int], deadline: List[int]) -> bool:
6565
self.index2 = self.jobs.index(self.tmp[j])
6666
j += 1
6767
if deadline[self.index1] > deadline[self.index2]:
68-
(self.tmp[i], self.tmp[j]) = (
68+
self.tmp[i], self.tmp[j] = (
6969
self.tmp[j],
7070
self.tmp[i],
7171
)
@@ -104,7 +104,7 @@ def main():
104104
current_job.extend((jobs[i].deadline, jobs[i].profit, jobs[i].job_id))
105105
midresult.append(current_job)
106106
midresult.sort(key=lambda k: (k[0], -k[1]))
107-
(deadline, profit, jobs) = map(list, zip(*midresult))
107+
deadline, profit, jobs = map(list, zip(*midresult))
108108

109109
scheduling_jobs = Scheduling(jobs)
110110
scheduled_jobs = scheduling_jobs.schedule(len(jobs), deadline)

Merge_linked_list.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Python3 program merge two sorted linked
22
# in third linked list using recursive.
33

4+
45
# Node class
56
class Node:
67
def __init__(self, data):

0 commit comments

Comments
 (0)