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:
- 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: requires pip-cache.
Must
pip-cache update
before.
- Completion:
- pip's options
- package: requires pip-cache.
Must
pip-cache update
before.
Other features:
- pre-commit-hooks
- linter
- formatter
Screenshots
Diagnostic
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
Close
Hashes for requirements-language-server-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58716bafbbad9bf7da0fc84ffa12d26d5743df6aae8de5549a049f52e008dba5 |
|
MD5 | 02e3412e3125c5bad308cbc9140e53dd |
|
BLAKE2b-256 | 1073f496d0f2495fbf7f9aa41e871ae24a3185a85adb8d64a4efb2c55c742fb5 |
Close
Hashes for requirements_language_server-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca4317e47a94a386d58a6406999c5cd2ea6d57b1f40ef5bc4b6b43e2084fc3dc |
|
MD5 | 8a65f3f581a0b9fb100a678caac584e2 |
|
BLAKE2b-256 | 3590f616aef03833596b42310e80f476adbe39988fac0a74f7cb16b00cf1ea45 |