Closed adam-blackwater closed 10 months ago
This does indeed fix the latest ruff. Do we want to keep supporting the older versions too? The ones that still have --format
?
ruff is a new evolving tool, we should stick to the latest version.
ruff is a new evolving tool, we should stick to the latest version.
While indeed young and evolving, ruff is already very popular (it being so much faster than flake8) and used as the default linter in many projects. This is the current version of it on various platforms: https://repology.org/project/ruff-python-linter/versions
If ALE smooths over version discrepancies for other linting tools, than it is probably worth doing this for ruff as well. If ALE doesn't, then it shouldn't for ruff either.
Can confirm this fixes #4633
ruff released 4 patch versions in those 2 weeks. I think there is no point in keeping compatibility with "alpha" 0.0.x
Anything still blocking this from being merged?
Can we merge this?
I think the issue is whether we want to keep support for earlier versions of Ruff (i.e. the if
-statement on version number). Perhaps @w0rp can make a quick executive decision here? The code itself is good and ready to merge.
I don't see why this would be a blocker to merge this PR as it stands right now. We can always remove support for older versions later.
ruff released 4 patch versions in those 2 weeks. I think there is no point in keeping compatibility with "alpha" 0.0.x
People get locked into all kinds of weird versions and I like to not break things when it's easy not to break things.
Crossposting this question here since more folks involved in the project are on this PR. ALE hasn't had a new version in about 18 months, are there plans for a new release to be made to get this fix out (as well as anything else done in that time)? https://github.com/dense-analysis/ale/issues/4633#issuecomment-2191821583
Hi. I noticed that one of the hardcoded options for the python linter Ruff is out of date and was causing an "unexpected argument" error in the output when the linter first starts.
I have updated the argument so that it matches the newest documentation. Instead of
--format text
the option is now--output-format text
.Output before fix is shown below:
Output after fix is shown below:
I hope this helps :)