requirements-language-server 0.0.21

Creator: bigcodingguy24

Last updated:

0 purchases

requirements-language-server 0.0.21 Image
requirements-language-server 0.0.21 Images

Languages

Categories

Add to Cart

Description:

requirementslanguageserver 0.0.21

requirements-language-server

































Language server for
requirements.txt.
Currently python's requirement.txt has 2 types:

PEP508: supported by:

setuptools


pip:
supported by:

pip
pip-compile



The difference is that
PEP508 doesn't support pip's options.
For pyproject.toml:
[tool.setuptools.dynamic.dependencies]
file = "requirements.txt"

[tool.setuptools.dynamic.optional-dependencies.dev]
file = "requirements/dev.txt"

We recognize requirements.txt and requirements/dev.txt as PEP508's
requirements.txts and display errors for all pip's options. For other
requirements.txts, we recognize them as pip's requirements.txts.
Features:

Goto Definition:
jump to first repeated package
Find References:
jump to all other repeated packages
Diagnostic:

repeated packages
unsorted packages
invalid path
pip's option when PEP508 is enabled


Document Formatting:
sort packages
Document Link:
open package's pypi homepage
Hover

pip's options
package


Completion:

pip's options
package



Other features:

pre-commit-hooks

linter
formatter



Screenshots
Diagnostic

Hover


Completion



How Does It Work
See here.
Read

to know more.
Related Projects

requirements.txt.vim:
syntax highlight for vim
vim-polyglot: contains above
bat: syntax highlight for less
requirements-txt-fixer:
sort package names
pip-tools: check requirements.txt

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.