|
|
|
|
|
by SushiHippie
790 days ago
|
|
I think I mention this all the time when this comes up, but I learned the most 'best practices' through using ruff. https://docs.astral.sh/ruff/ I just installed and enabled all the rules by setting
select = [ "ALL" ] And then looked at the 'errors' it showed me for my existing code base and then excluded some rules which don't interest me. I also have it set up in my IDE, so it'll show me the linting errors while coding. In a larger code base there will definitely be many 'errors', but using it cleaned up my code really good and it stopped me from some footguns. |
|