requirements.txt language server
Project description
requirements-language-server
Language server for requirements.txt.
Currently python's requirement.txt has 2 types:
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 lsp-tree-sitter.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requirements_language_server-0.0.22.tar.gz.
File metadata
- Download URL: requirements_language_server-0.0.22.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47f76fbefd0a22965034e40c5e5a8b5b64df70a49be61daa1cd3e441f41e0bfe
|
|
| MD5 |
1422010c6e33c33caf45c07fea91b56e
|
|
| BLAKE2b-256 |
8ad42552a9640c278a0bb32d055daec243865135dc0bcfd7724001d3913fab55
|
File details
Details for the file requirements_language_server-0.0.22-py3-none-any.whl.
File metadata
- Download URL: requirements_language_server-0.0.22-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eaf0d557ae4660c65ef9a7b69293911bc0dbb54ee0c66ec0dc868bbfa93828e
|
|
| MD5 |
62a206498201d24e5a122e41f5a18239
|
|
| BLAKE2b-256 |
b7492c97e503b4d963472595ff5c667fe5b1735850ddda5eb74184547afd754e
|