Currently we are using 12 Ruff rule sets, defined in pyproject.toml:
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"N", # pep8-naming
"TC", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle warnings
]
I suggest we should add some more to increase code quality and enforce best practices. I made a list but I am not sure if we really want all of them. We should at least test:
I suggest introducing them in separate PRs, so they are focused and easier to review. Will do this over time, whenever I feel like adding one.
Currently we are using 12 Ruff rule sets, defined in
pyproject.toml:I suggest we should add some more to increase code quality and enforce best practices. I made a list but I am not sure if we really want all of them. We should at least test:
BLE: flake8-blind-except<- does not allow catching general Exceptions, which is useful sometimesYTT: flake8-2020<- outdatedI suggest introducing them in separate PRs, so they are focused and easier to review. Will do this over time, whenever I feel like adding one.