yaegassy / coc-ruff Goto Github PK
View Code? Open in Web Editor NEWruff-lsp (ruff) extension for coc.nvim
Home Page: https://www.npmjs.com/package/@yaegassy/coc-ruff
License: MIT License
ruff-lsp (ruff) extension for coc.nvim
Home Page: https://www.npmjs.com/package/@yaegassy/coc-ruff
License: MIT License
I have currently enabled autofix but want some rules to be not autofixable. Ruff provides a setting --unfixable
exactly for this. I tried setting ruff.args=["--unfixable F401"]
in coc-settings.json
. As soon as I add this setting, coc-ruff stops working with no linting and fixing at all.
The wrapping of astral-sh/ruff seems to be adding whitespace before colons and triggering the linter E203 after formatting fix. It seems like this was also an issue with astral-sh/ruff, issued here: astral-sh/ruff#8642 and fixed in 2023. Can this be fixed easily by upgrading to a new version of astral-sh?
We can apply auto fix by running ruff.executeAutofix
command. It would have been really nice if we get a configuration option for auto fix on file save like in coc-eslint.
I have "ruff.autoFixOnSave": true
in my coc settings. Whenever I save my file, ruff applies fixes but doesn't save the file. This behaviour is different from extensions like coc-eslint which save the file with the fix applied.
Dear coc-ruff developer, coc-ruff are great. Thanks for your contribution. While I tried to install ruff-lsp on windows10 using CocCommand, it failed. Here comes the error messages:
[coc.nvim] Installation of ruff-lsp failed. | Error: Command failed: D:\Program Files\Python38\python.EXE -m venv D:\Users\xxx\AppData\Local\coc\extensions\@yaegassy\coc-ruff-data\ruff-lsp\venv && D:\Users\xxx\AppData\Local\coc\extensions\@yaegassy\coc-ruff-data\ruff-lsp\venv\Scripts\python -m pip install -U pip ruff-lsp==0.0.27
'D:\Program' �����ڲ����ⲿ���Ҳ���ǿ����еij���
After I do the next three steps, everything goes fine. Hope It will benefit other junior windows users like me. And would you consider optimizing the install command?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.