Support using Ruff for formatting, linting #12
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for using Ruff as a formatter/linter, replacing black, isort, pylint, and pydocstyle. This change converts this repository to use it, but does not yet remove support for our old linters so that Analytics and Core can be switched over as is convenient.
Ruff has a ton of rules that can be enabled and disabled; I set it up to use the rules corresponding to pylint and pydocstyle, as well as some of its own rules, but this configuration will likely need to be adjusted as we move Analytics and Core over -- I didn't go through and disable all of the rules we were previously ignoring, on the theory that this is a good opportunity to re-evaluate our existing configuration, but many of those rules were ignored for a good reason.
opendp/tumult-analytics#109