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.txt
s and display errors for all pip's options. For other
requirements.txt
s, we recognize them as pip's requirements.txt
s.
Features:
- diagnostic
- format: sort packages
- go to definition: jump to first repeated package
- go to reference: jump to all other repeated packages
- document link: open package's pypi homepage
- document hover & completion:
- pip's options
- package: requires pip-cache.
Must
pip-cache update
before.
Other features:
- pre-commit-hooks
- linter
- formatter
Screenshots
Diagnostic
Document Hover
Completion
Related Projects
- requirements.txt.vim: syntax highlight for vim
- vim-polyglot: contains above
- bat: syntax highlight for less
- requirements-txt-fixer: sort package names
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
File details
Details for the file requirements-language-server-0.0.8.tar.gz
.
File metadata
- Download URL: requirements-language-server-0.0.8.tar.gz
- Upload date:
- Size: 38.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ce82fae6bc99ea22e7f6f79f4c61fef012ec04cef2618feeb97a21c5aa9bde7 |
|
MD5 | d6fb241c4871eee86401d8fa3425776e |
|
BLAKE2b-256 | 6b343b0907a2a6543c29b58760b851966ee4fc1fd31e27df90d9e0401d15c466 |
File details
Details for the file requirements_language_server-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: requirements_language_server-0.0.8-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ebc6dc11dc0c0f19dd1996837ef4f38b2bafb36f532ff512fd588063016e63 |
|
MD5 | 8bca9734b81962191c5ff6a3a83808e4 |
|
BLAKE2b-256 | 226f23c9204c901c16b64b68d26ff4d1150d0c85fe3f0997204abda15e14e4bc |