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.
- 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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449cdc160db7d989babb5a154c8e5a5f5370b8242cc88a7b49b96ffc3ab68239 |
|
MD5 | 4a26977ffdee21456a6e79948e0b59e8 |
|
BLAKE2b-256 | 013f59ec0ff226fe93dc8546a00aa26732ba8765b999ffd564047e58adbd262d |
Close
Hashes for requirements_language_server-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f12a8194cd00463a21c37caea054e4e59fdf5686e0e29bcaf95448172e24df4 |
|
MD5 | d5d368b668c29e4f296983e4a91318f6 |
|
BLAKE2b-256 | d4f4996bcffcab4106f31e97b2591d7946ac09180774af6aa2aae103c0f3dbc8 |