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
Close
Hashes for requirements-language-server-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61eb7193687ff8b643c043771fb0f51e521adf9bfe51d8903505d91f09e2f3c7 |
|
MD5 | 4f19dac8fffdcd8788f688476dc657c2 |
|
BLAKE2b-256 | cfade600d8fa065132385719d2a2bcec4bc43d0d029a3ebcc7b86cb94092a82a |
Close
Hashes for requirements_language_server-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04f261fe136abc427cda83a07e447e164595c424ac84f0d7d5b8a52a9c865733 |
|
MD5 | d81f1667b724bc85489296b3b0190b75 |
|
BLAKE2b-256 | f5c2342412dde4a94dc1657417f67056288537e74e0d14e0daf3b3e6d698d70e |