InnovBotics-Labs / tiny-python-tasks

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

Fix all remaining pylint issues #59

Closed PrabhukumarSivamoorthy closed 1 month ago

PrabhukumarSivamoorthy commented 1 month ago

Current status

************* 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 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: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: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 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)
PrabhukumarSivamoorthy commented 1 month ago

Status of 10/0/24:

************* 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:2:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module flash_cards
Tasks/Flash_Cards/flash_cards.py:73:8: W0603: Using the global statement (global-statement)
************* Module data_manager
Tasks/Flight_Tracker/data_manager.py:9:4: W0107: Unnecessary pass statement (unnecessary-pass)
Tasks/Flight_Tracker/data_manager.py:7:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module flight_data
Tasks/Flight_Tracker/flight_data.py:8:4: W0107: Unnecessary pass statement (unnecessary-pass)
Tasks/Flight_Tracker/flight_data.py:6:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module flight_search
Tasks/Flight_Tracker/flight_search.py:8:4: W0107: Unnecessary pass statement (unnecessary-pass)
Tasks/Flight_Tracker/flight_search.py:6:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module notification_manager
Tasks/Flight_Tracker/notification_manager.py:8:4: W0107: Unnecessary pass statement (unnecessary-pass)
Tasks/Flight_Tracker/notification_manager.py:6:0: R0903: Too few public methods (0/2) (too-few-public-methods)
************* Module password_generator
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:19:0: R0915: Too many statements (66/50) (too-many-statements)
************* 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 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 turtle_crossing_game
Tasks/Turtle_Crossing_Game/turtle_crossing_game.py:22:17: E1120: No value for argument 'side' in constructor call (no-value-for-parameter)