InnovBotics-Labs / tiny-python-tasks

Contains simple python programs
MIT License
9 stars 0 forks source link

Part 2 : Fix the pylint error for the old code(basic ones) #46

Closed PrabhukumarSivamoorthy closed 2 months ago

PrabhukumarSivamoorthy commented 2 months ago

Module weather Tasks/Scratch/weather.py:62:0: C0305: Trailing newlines (trailing-newlines) Tasks/Scratch/weather.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Scratch/weather.py:3:0: E0401: Unable to import 'pandas' (import-error) Tasks/Scratch/weather.py:4:0: E0401: Unable to import 'numpy.ma.extras' (import-error) Tasks/Scratch/weather.py:7:0: C0103: Constant name "csv_file_path" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Scratch/weather.py:9:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Scratch/weather.py:10:9: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) Module Database Tasks/Simple_Calculator/Database.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Simple_Calculator/Database.py:1:0: C0103: Module name "Database" doesn't conform to snake_case naming style (invalid-name) Tasks/Simple_Calculator/Database.py:3:0: C0103: Constant name "logo" doesn't conform to UPPER_CASE naming style (invalid-name) Module Simple_Calculator Tasks/Simple_Calculator/Simple_Calculator.py:18:0: C0301: Line too long (106/100) (line-too-long) Tasks/Simple_Calculator/Simple_Calculator.py:33:0: C0301: Line too long (110/100) (line-too-long) Tasks/Simple_Calculator/Simple_Calculator.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Simple_Calculator/Simple_Calculator.py:1:0: C0103: Module name "Simple_Calculator" doesn't conform to snake_case naming style (invalid-name) Tasks/Simple_Calculator/Simple_Calculator.py:10:0: C0103: Constant name "result" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Simple_Calculator/Simple_Calculator.py:21:4: R1723: Unnecessary "else" after "break", remove the "else" and de-indent the code inside it (no-else-break) Module Utils_Methods Tasks/Simple_Calculator/Utils_Methods.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Simple_Calculator/Utils_Methods.py:1:0: C0103: Module name "Utils_Methods" doesn't conform to snake_case naming style (invalid-name) Tasks/Simple_Calculator/Utils_Methods.py:2:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Simple_Calculator/Utils_Methods.py:7:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Simple_Calculator/Utils_Methods.py:12:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Simple_Calculator/Utils_Methods.py:17:0: C0116: Missing function or method docstring (missing-function-docstring) Module Food Tasks/Snake_Game/Food.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Snake_Game/Food.py:1:0: C0103: Module name "Food" doesn't conform to snake_case naming style (invalid-name) Tasks/Snake_Game/Food.py:16:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/ScoreBoard.py:27:0: C0301: Line too long (117/100) (line-too-long) Tasks/Snake_Game/ScoreBoard.py:33:0: C0325: Unnecessary parens after '=' keyword (superfluous-parens) Tasks/Snake_Game/ScoreBoard.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Snake_Game/ScoreBoard.py:1:0: C0103: Module name "ScoreBoard" doesn't conform to snake_case naming style (invalid-name) Tasks/Snake_Game/ScoreBoard.py:24:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/ScoreBoard.py:31:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/ScoreBoard.py:39:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/ScoreBoard.py:44:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/ScoreBoard.py:49:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/ScoreBoard.py:50:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) Tasks/Snake_Game/ScoreBoard.py:54:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/ScoreBoard.py:55:13: W1514: Using open without explicitly specifying an encoding (unspecified-encoding) Tasks/Snake_Game/ScoreBoard.py:54:28: W0613: Unused argument 'highscore' (unused-argument) Module Snake Tasks/Snake_Game/Snake.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Snake_Game/Snake.py:1:0: C0103: Module name "Snake" doesn't conform to snake_case naming style (invalid-name) Tasks/Snake_Game/Snake.py:15:0: C0115: Missing class docstring (missing-class-docstring) Module Snake_Game Tasks/Snake_Game/Snake_Game.py:62:0: C0304: Final newline missing (missing-final-newline) Tasks/Snake_Game/Snake_Game.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Snake_Game/Snake_Game.py:1:0: C0103: Module name "Snake_Game" doesn't conform to snake_case naming style (invalid-name) Tasks/Snake_Game/Snake_Game.py:5:0: E0611: No name 'ScoreBoard' in module 'ScoreBoard' (no-name-in-module) Tasks/Snake_Game/Snake_Game.py:10:0: C0103: Constant name "window" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Snake_Game/Snake_Game.py:29:0: C0103: Constant name "game_over" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Snake_Game/Snake_Game.py:31:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Snake_Game/Snake_Game.py:38:8: W0603: Using the global statement (global-statement) Tasks/Snake_Game/Snake_Game.py:6:0: C0411: standard import "time" should be placed before third party imports "Snake.Snake", "Food.Food", "ScoreBoard.ScoreBoard" (wrong-import-order) Module Turtle_Race Tasks/Trutle_Race/Turtle_Race.py:9:0: C0301: Line too long (108/100) (line-too-long) Tasks/Trutle_Race/Turtle_Race.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Trutle_Race/Turtle_Race.py:1:0: C0103: Module name "Turtle_Race" doesn't conform to snake_case naming style (invalid-name) Tasks/Trutle_Race/Turtle_Race.py:5:0: C0103: Constant name "race_track" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Trutle_Race/Turtle_Race.py:25:0: C0103: Constant name "is_race_on" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Trutle_Race/Turtle_Race.py:30:12: C0103: Constant name "is_race_on" doesn't conform to UPPER_CASE naming style (invalid-name) Module Turtle Tasks/Turtle/Turtle.py:41:0: C0301: Line too long (123/100) (line-too-long) Tasks/Turtle/Turtle.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Turtle/Turtle.py:1:0: C0103: Module name "Turtle" doesn't conform to snake_case naming style (invalid-name) Tasks/Turtle/Turtle.py:2:0: W0401: Wildcard import turtle (wildcard-import) Tasks/Turtle/Turtle.py:3:0: E0401: Unable to import 'heroes' (import-error) Tasks/Turtle/Turtle.py:4:0: E0401: Unable to import 'villains' (import-error) Tasks/Turtle/Turtle.py:14:0: E1101: Module 'turtle' has no 'colormode' member (no-member) Tasks/Turtle/Turtle.py:16:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Turtle/Turtle.py:22:0: C0103: Constant name "radius" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Turtle/Turtle.py:23:0: C0103: Constant name "n" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Turtle/Turtle.py:69:0: C0103: Constant name "window" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/Turtle/Turtle.py:82:0: E0401: Unable to import 'prettytable' (import-error) Tasks/Turtle/Turtle.py:82:0: C0413: Import "from prettytable import PrettyTable" should be placed at the top of the module (wrong-import-position) Tasks/Turtle/Turtle.py:5:0: C0411: standard import "random" should be placed before third party imports "heroes", "villains" (wrong-import-order) Tasks/Turtle/Turtle.py:2:0: W0614: Unused import(s) TK, types, math, time, inspect, sys, warnings, config_dict, readconfig, Vec2D, ScrolledCanvas, Canvas, TurtleScreenBase, Terminator, TurtleGraphicsError, Shape, Tbuffer, TurtleScreen, TNavigator, TPen, RawTurtle, RawPen, Pen, write_docstringdict, read_docstrings, getmethparlist, done, switchpen, demo1, demo2, isfile, split, join, deepcopy and simpledialog from wildcard import of turtle (unused-wildcard-import) Module Car_Manager Tasks/Turtle_Crossing_Game/Car_Manager.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Turtle_Crossing_Game/Car_Manager.py:1:0: C0103: Module name "Car_Manager" doesn't conform to snake_case naming style (invalid-name) Tasks/Turtle_Crossing_Game/Car_Manager.py:23:4: C0116: Missing function or method docstring (missing-function-docstring) Module Player Tasks/Turtle_Crossing_Game/Player.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Turtle_Crossing_Game/Player.py:1:0: C0103: Module name "Player" doesn't conform to snake_case naming style (invalid-name) Tasks/Turtle_Crossing_Game/Player.py:28:4: C0112: Empty method docstring (empty-docstring) Module Scoreboard Tasks/Turtle_Crossing_Game/Scoreboard.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/Turtle_Crossing_Game/Scoreboard.py:1:0: C0103: Module name "Scoreboard" doesn't conform to snake_case naming style (invalid-name) Tasks/Turtle_Crossing_Game/Scoreboard.py:21:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Turtle_Crossing_Game/Scoreboard.py:27:4: C0116: Missing function or method docstring (missing-function-docstring) Tasks/Turtle_Crossing_Game/Scoreboard.py:31:4: C0116: Missing function or method docstring (missing-function-docstring) Module Tasks.US_state_Game.US_State_Game Tasks/US_state_Game/US_State_Game.py:22:0: C0301: Line too long (109/100) (line-too-long) Tasks/US_state_Game/US_State_Game.py:62:0: C0301: Line too long (109/100) (line-too-long) Tasks/US_state_Game/US_State_Game.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/US_state_Game/US_State_Game.py:1:0: C0103: Module name "US_State_Game" doesn't conform to snake_case naming style (invalid-name) Tasks/US_state_Game/US_State_Game.py:2:0: E0401: Unable to import 'pandas' (import-error) Tasks/US_state_Game/US_State_Game.py:12:0: C0103: Constant name "game_window" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/US_state_Game/US_State_Game.py:19:0: E1101: Module 'turtle' has no 'shape' member; maybe 'Shape'? (no-member) Tasks/US_state_Game/US_State_Game.py:29:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/US_state_Game/US_State_Game.py:41:0: C0103: Constant name "score" doesn't conform to UPPER_CASE naming style (invalid-name) Tasks/US_state_Game/US_State_Game.py:43:4: R1723: Unnecessary "elif" after "break", remove the leading "el" from "elif" (no-else-break) Tasks/US_state_Game/US_State_Game.py:64:0: E1101: Module 'turtle' has no 'mainloop' member (no-member) Tasks/US_state_Game/US_State_Game.py:3:0: C0411: standard import "turtle" should be placed before third party import "pandas" (wrong-import-order) Module Tasks.pomodoro.Pomodoro Tasks/pomodoro/Pomodoro.py:46:0: C0301: Line too long (107/100) (line-too-long) Tasks/pomodoro/Pomodoro.py:1:0: C0114: Missing module docstring (missing-module-docstring) Tasks/pomodoro/Pomodoro.py:1:0: C0103: Module name "Pomodoro" doesn't conform to snake_case naming style (invalid-name) Tasks/pomodoro/Pomodoro.py:2:0: W0401: Wildcard import tkinter (wildcard-import) Tasks/pomodoro/Pomodoro.py:15:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/pomodoro/Pomodoro.py:19:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/pomodoro/Pomodoro.py:29:0: C0116: Missing function or method docstring (missing-function-docstring) Tasks/pomodoro/Pomodoro.py:2:0: W0614: Unused import(s) collections, enum, sys, types, TclError, re, wantobjects, TkVersion, TclVersion, READABLE, WRITABLE, EXCEPTION, EventType, Event, NoDefaultRoot, Variable, StringVar, IntVar, DoubleVar, BooleanVar, mainloop, getint, getdouble, getboolean, Misc, CallWrapper, XView, YView, Wm, Tcl, Pack, Place, Grid, BaseWidget, Widget, Toplevel, Checkbutton, Entry, Frame, Listbox, Menu, Menubutton, Message, Radiobutton, Scale, Scrollbar, Text, OptionMenu, Image, BitmapImage, image_names, image_types, Spinbox, LabelFrame, PanedWindow, NO, FALSE, OFF, YES, TRUE, ON, N, S, W, E, NW, SW, NE, SE, NS, EW, NSEW, CENTER, NONE, X, Y, BOTH, LEFT, TOP, RIGHT, BOTTOM, RAISED, SUNKEN, FLAT, RIDGE, GROOVE, SOLID, HORIZONTAL, VERTICAL, NUMERIC, CHAR, WORD, BASELINE, INSIDE, OUTSIDE, SEL, SEL_FIRST, SEL_LAST, END, INSERT, CURRENT, ANCHOR, ALL, NORMAL, DISABLED, ACTIVE, HIDDEN, CASCADE, CHECKBUTTON, COMMAND, RADIOBUTTON, SEPARATOR, SINGLE, BROWSE, MULTIPLE, EXTENDED, DOTBOX, UNDERLINE, PIESLICE, CHORD, ARC, FIRST, LAST, BUTT, PROJECTING, ROUND, BEVEL, MITER, MOVETO, SCROLL, UNITS and PAGES from wildcard import of tkinter (unused-wildcard-import)

PrabhukumarSivamoorthy commented 2 months ago

status as of 10/1/2024

************* Module black_jack
Tasks/Black_Jack/black_jack.py:36:0: R0912: Too many branches (13/12) (too-many-branches)
************* Module coffee_machine_utils_methods
Tasks/Coffee_Machine/coffee_machine_utils_methods.py:101:16: W0603: Using the global statement (global-statement)
************* Module menu
Tasks/Coffee_machine_OOP/menu.py:4:4: R0913: Too many arguments (6/5) (too-many-arguments)
Tasks/Coffee_machine_OOP/menu.py:4:4: R0917: Too many positional arguments (6/5) (too-many-positional-arguments)
Tasks/Coffee_machine_OOP/menu.py:2:0: R0903: Too few public methods (0/2) (too-few-public-methods)
Tasks/Coffee_machine_OOP/menu.py:29:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
************* Module linked_list
Tasks/DSA_workout/linked_list.py:5:29: W0622: Redefining built-in 'next' (redefined-builtin)
Tasks/DSA_workout/linked_list.py:2:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module flash_cards
Tasks/Flash_Cards/flash_cards.py:22:0: C0103: Constant name "current_card" doesn't conform to UPPER_CASE naming style (invalid-name)
Tasks/Flash_Cards/flash_cards.py:23:0: C0103: Constant name "flip_timer" doesn't conform to UPPER_CASE naming style (invalid-name)
Tasks/Flash_Cards/flash_cards.py:25:0: R0914: Too many local variables (16/15) (too-many-locals)
Tasks/Flash_Cards/flash_cards.py:125:4: W0621: Redefining name 'flip_timer' from outer scope (line 23) (redefined-outer-name)
Tasks/Flash_Cards/flash_cards.py:73:8: W0603: Using the global statement (global-statement)
Tasks/Flash_Cards/flash_cards.py:108:8: W0602: Using global for 'current_card' but no assignment is done (global-variable-not-assigned)
************* Module hangman
Tasks/Hangman/hangman.py:21:19: C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
Tasks/Hangman/hangman.py:38:12: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
************* Module hirst_painting
Tasks/Hirst_Painting/hirst_painting.py:40:4: W0612: Unused variable 'start_place' (unused-variable)
************* Module password_generator
Tasks/Password_Generator/password_generator.py:5:0: E0401: Unable to import 'Tasks.Password_Manager.Controller.password_generator' (import-error)
Tasks/Password_Manager/Controller/password_generator.py:16:0: R0903: Too few public methods (1/2) (too-few-public-methods)
************* Module password_manager
Tasks/Password_Manager/password_manager.py:32:17: W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
Tasks/Password_Manager/password_manager.py:19:0: R0915: Too many statements (66/50) (too-many-statements)
************* Module pomodoro
Tasks/Pomodoro/pomodoro.py:61:0: C0301: Line too long (102/100) (line-too-long)
Tasks/Pomodoro/pomodoro.py:19:4: W0107: Unnecessary pass statement (unnecessary-pass)
************* Module pong_game
Tasks/Pong_Game/pong_game.py:24:4: W0612: Unused variable 'divider' (unused-variable)
************* Module question_model
Tasks/Quiz_Game/question_model.py:2:0: R0903: Too few public methods (0/2) (too-few-public-methods)
Tasks/Quizzer/question_model.py:3:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module quizzer
Tasks/Quizzer/quizzer.py:21:15: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)
Tasks/Quizzer/quizzer.py:34:4: W0612: Unused variable 'quiz_ui' (unused-variable)
************* Module rock_paper_sicssors
Tasks/Rock_Paper_Sicssors/rock_paper_sicssors.py:83:12: R0916: Too many boolean expressions in if statement (6/5) (too-many-boolean-expressions)
************* Module food
Tasks/Snake_Game/food.py:5:0: R0903: Too few public methods (1/2) (too-few-public-methods)
************* Module scoreboard
Tasks/Snake_Game/scoreboard.py:39:0: C0325: Unnecessary parens after '=' keyword (superfluous-parens)
Tasks/Snake_Game/scoreboard.py:63:28: W0613: Unused argument 'highscore' (unused-argument)
************* Module snake_game
Tasks/Snake_Game/snake_game.py:7:0: E0611: No name 'ScoreBoard' in module 'scoreboard' (no-name-in-module)
************* Module turtle_crossing_game
Tasks/Turtle_Crossing_Game/turtle_crossing_game.py:21:17: E1120: No value for argument 'side' in constructor call (no-value-for-parameter)
-----------------------------------
Your code has been rated at 9.71/10