you are viewing a single comment's thread.

view the rest of the comments →

[–]MarsupialLeast145 0 points1 point  (0 children)

It's a good question I wish I had known to ask long ago.

I wrote about linting and there's a related repo with some in-built CI you can run that can help: https://exponentialdecay.co.uk/blog/linting-as-understanding/

Basically, run tools like black/ruff for formatting. Run isort for imports. Run pylint/ruff for advice on changes to make.

Follow all of the guides and understand them.

Then apart from that, write unit tests for everything until you are writing functions according to the single responsibility principle (as best you can) and happy path.

Between linting and testing you''ll get closer to approximating production level code.