Package Details: python-lsp-ruff 2.2.2-1

Git Clone URL: https://aur.archlinux.org/python-lsp-ruff.git (read-only, click to copy)
Package Base: python-lsp-ruff
Description: python-lsp-server plugin for extensive and fast linting using ruff
Upstream URL: https://github.com/python-lsp/python-lsp-ruff
Licenses: MIT
Submitter: jhossbach
Maintainer: jhossbach
Last Packager: jhossbach
Votes: 8
Popularity: 0.006911
First Submitted: 2022-12-13 22:05 (UTC)
Last Updated: 2024-10-21 11:30 (UTC)

Latest Comments

ginnokami commented on 2024-09-27 12:30 (UTC)

Could you please add python-setuptools to the make depends, as it is needed for building in a chroot environment. Without this make dependency you will get the following error when building:

* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta' is not available.

jhossbach commented on 2023-05-31 16:10 (UTC)

This looks like https://github.com/python-lsp/python-lsp-ruff/issues/39, which was resolved after upgrading ruff to >=v0.0.267. The upgrade is not done automatically because ruff comes from the arch repos in this case? I am unsure if dependency specification is even possible in this case. But upgrading to ruff >= 0.0.267 should solve the issue.

harshcurious commented on 2023-05-31 15:47 (UTC)

This failed tests for me. Full log here: https://pastebin.com/1G5jfpgR

jhossbach commented on 2023-02-28 12:13 (UTC)

@alerque Great, thanks alot! Updated to use python-ruff instead of ruff.

alerque commented on 2023-02-28 11:37 (UTC)

@jhossbach The Python module is just a thin wrapper around the binary executable. It uses os.spawnv() to run the CLI it with your options and pass results back to Python.

jhossbach commented on 2023-02-25 21:04 (UTC)

@alerque I can confirm it working with python-ruff. Why do you need ruff as a dependency of python-ruff?

alerque commented on 2023-02-25 17:07 (UTC) (edited on 2023-02-25 17:07 (UTC) by alerque)

Per FS#77637 this package probably needs to depend on python-ruff, currently in [community-testing]. I would appreciate if somebody who uses this and had/has it working already can give it a spin with the new split ruff packaging:

pacman -U https://archlinux.org/packages/community-testing/x86_64/{,python-}ruff/download/

rharish commented on 2023-01-15 11:23 (UTC)

@TomFryers Thanks! That worked for me.

TomFryers commented on 2023-01-15 11:19 (UTC)

I had the same issue. It seems to work if you uninstall the old version first.

rharish commented on 2023-01-14 23:15 (UTC) (edited on 2023-01-14 23:16 (UTC) by rharish)

The current version fails to pass tests for me. The error output can be found in this pastebin here: https://0.0g.gg/?8fbfc7b3caba2dda#HLdzszpAAtQprs8yVW1KaN57RNS9GY5RcDDoQcUhst4y.