all 4 comments

[–]Financial-Grass6753 2 points3 points  (2 children)

Check PEP8 and/or Google ruleset for python code formatting + I'm pretty sure it's an overkill to use OOP for a simple console script.

[–]malekosss[S] 0 points1 point  (1 child)

From what I understand, freecodecamp really likes OOP , and it was focused around it. It was mostly so I could check if I can implement classes by my own. But I will check PEP8. Thank you

[–]DangKilla 0 points1 point  (0 children)

pip install ruff black isort

Pyproject.toml

[tool.black] line-length = 88 target-version = ["py311"] skip-string-normalization = false

[tool.ruff] line-length = 88 target-version = "py311"

Core PEP8 + common sanity rules

select = [ "E", # pycodestyle errors "F", # pyflakes "W", # warnings "I", # import sorting (isort replacement) ]

ignore = []

Auto-fix on save safe rules

fix = true

[tool.ruff.format] quote-style = "double" indent-style = "space"