From 00d34e7e2fcb63ca693f6298dd6469b4806acb6c Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 29 Apr 2024 19:20:03 -0400 Subject: [PATCH] pylint fixes --- .gitea/workflows/config/.pylintrc | 7 +++++++ Blastoff/README.md | 3 --- Blastoff/__init__.py | 1 - OnlineStore/README.md | 3 --- OnlineStore/__init__.py | 1 - blastoff/README.md | 5 +++++ blastoff/__init__.py | 1 + Blastoff/blastoff.py => blastoff/main.py | 4 ++-- online_store/README.md | 5 +++++ online_store/__init__.py | 1 + {OnlineStore => online_store}/main.py | 5 ++--- 11 files changed, 23 insertions(+), 13 deletions(-) delete mode 100644 Blastoff/README.md delete mode 100644 Blastoff/__init__.py delete mode 100644 OnlineStore/README.md delete mode 100644 OnlineStore/__init__.py create mode 100644 blastoff/README.md create mode 100644 blastoff/__init__.py rename Blastoff/blastoff.py => blastoff/main.py (94%) create mode 100644 online_store/README.md create mode 100644 online_store/__init__.py rename {OnlineStore => online_store}/main.py (96%) diff --git a/.gitea/workflows/config/.pylintrc b/.gitea/workflows/config/.pylintrc index e69de29..4adb430 100644 --- a/.gitea/workflows/config/.pylintrc +++ b/.gitea/workflows/config/.pylintrc @@ -0,0 +1,7 @@ + [MESSAGES CONTROL] + disable= + too-many-lines, + missing-module-docstring, + missing-function-docstring, + missing-class-docstring, + line-too-long diff --git a/Blastoff/README.md b/Blastoff/README.md deleted file mode 100644 index e0535d7..0000000 --- a/Blastoff/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Blastoff! - -*4/29/2024* \ No newline at end of file diff --git a/Blastoff/__init__.py b/Blastoff/__init__.py deleted file mode 100644 index 05fd078..0000000 --- a/Blastoff/__init__.py +++ /dev/null @@ -1 +0,0 @@ -35,32,100,111,110,39,116,32,109,111,100,105,102,121,32,116,104,105,115,32,102,105,108,101 \ No newline at end of file diff --git a/OnlineStore/README.md b/OnlineStore/README.md deleted file mode 100644 index e1e3347..0000000 --- a/OnlineStore/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Online Store -04/29/2024 -wip \ No newline at end of file diff --git a/OnlineStore/__init__.py b/OnlineStore/__init__.py deleted file mode 100644 index a576777..0000000 --- a/OnlineStore/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# don't modify this file \ No newline at end of file diff --git a/blastoff/README.md b/blastoff/README.md new file mode 100644 index 0000000..e4f31a1 --- /dev/null +++ b/blastoff/README.md @@ -0,0 +1,5 @@ +# Blastoff + +## 4/29/2024 + +wip diff --git a/blastoff/__init__.py b/blastoff/__init__.py new file mode 100644 index 0000000..6dc7ae6 --- /dev/null +++ b/blastoff/__init__.py @@ -0,0 +1 @@ +# don't modify this file diff --git a/Blastoff/blastoff.py b/blastoff/main.py similarity index 94% rename from Blastoff/blastoff.py rename to blastoff/main.py index 70a42ba..3245f55 100644 --- a/Blastoff/blastoff.py +++ b/blastoff/main.py @@ -7,7 +7,7 @@ def countdown(n: int) -> None: print(n) sleep(1) countdown(n-1) - + def countup(n: int) -> None: if n >= 0: print('Blastoff!') @@ -24,4 +24,4 @@ def count(n: int) -> None: if __name__ == "__main__": num = input("Enter a number: ") - count(int(num)) \ No newline at end of file + count(int(num)) diff --git a/online_store/README.md b/online_store/README.md new file mode 100644 index 0000000..7426c80 --- /dev/null +++ b/online_store/README.md @@ -0,0 +1,5 @@ +# Online Store + +## 04/29/2024 + +wip diff --git a/online_store/__init__.py b/online_store/__init__.py new file mode 100644 index 0000000..6dc7ae6 --- /dev/null +++ b/online_store/__init__.py @@ -0,0 +1 @@ +# don't modify this file diff --git a/OnlineStore/main.py b/online_store/main.py similarity index 96% rename from OnlineStore/main.py rename to online_store/main.py index 7d21476..54ddf70 100644 --- a/OnlineStore/main.py +++ b/online_store/main.py @@ -23,8 +23,7 @@ def get_discounted_prices(*prices: int) -> float: elif len(prices_set) == 2: return float(price_sum * 0.9) - else: - return float(price_sum) + return float(price_sum) def print_row(item: str, price: str, bold: bool = False) -> None: # ANSI color codes @@ -50,4 +49,4 @@ if __name__ == '__main__': print_row("Grapes & Apples Combo", get_discounted_prices(prices_dict["grapes"], prices_dict["apples"])) print_row("Fruit Gift Pack", get_discounted_prices(prices_dict["grapes"], prices_dict["apples"], prices_dict["oranges"])) print("⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯") - print("For delivery Contact: (987) 646-78899") # lol? \ No newline at end of file + print("For delivery Contact: (987) 646-78899") # lol?