-
Notifications
You must be signed in to change notification settings - Fork 2
Replace pylint, pydocstyle with ruff check #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
These lints cover some of what pylint previously did for us -- ruff doesn't include them in both rulesets because they are redundant.
2783c14 to
0a54bc4
Compare
4d0deb7 to
e62e576
Compare
d1cfa0e to
ea0bb60
Compare
Replaces links to projects.iq.harvard.edu with Wayback Machine links, as that site has shut down. Also updates intersphinx to point to a (hopefully more stable) location for the Spark docs, and fixes a missing import in some doctests.
5f199bd to
42e41b4
Compare
|
Looks like the apache hive wiki is moving - I don't know if that's what's causing the latest round of errors, but maybe worth trying updating the links to the new location? I can't suggest them since you haven't edited the spark topic guide, but the new links are https://hive.apache.org/docs/latest/admin/adminmanual-metastore-3-0-administration/ and https://hive.apache.org/docs/latest/user/hiveserver2-clients/#beeline-hive-commands |
* Replace pylint, pydocstyle with ruff check Replaces pylint and pydocstyle linters with `ruff check`, and configures Ruff's lint rules. All lints that are not able to be auto-fixed or trivially fixable by hand are temporarily disabled to keep the diff smaller. * Disable RUF010 and revert changes it introduced * Remove unneeded whitespace where pylint control comments were removed * Update pyspark intersphinx location to match Core * Fix doctests, pull in changes from opendp/tumult-core#47
Switches out pylint and pydocstyle for
ruff check, fixing any lints that are automatically fixable, temporarily disabling all others, and removing all existing lint control comments from those two linters.In the interest of keeping the diff here even slightly manageable, I'm going to go through the disabled lints one-by-one in separate MRs and either fix/re-enable them or leave a note about why they're being left permanently disabled.
I've enabled some additional lint rule sets that don't correspond to the linters we were using previously, as Ruff doesn't have duplicate codes for rules that were applied by multiple linters, and as a result some rules that we relied on Pylint for are categorized elsewhere (mainly pyflakes). The set of enabled rules will continue to evolve over time as we notice things that should be getting caught but aren't.
opendp/tumult-analytics#109