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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c836a53c0e532b96dcfa98231a5198b1d11ca08131c413be8faf358cbd1a0d6f |
|
MD5 | 93178e4a7d410d01a16cad268eebd416 |
|
BLAKE2b-256 | 46e14ac226f953831e8cfae4669a26e844d3626d868c93d61d02ff78e3441aec |
Close
Hashes for requirements_language_server-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08188144562e1a004d8ebe78c4666faa350c7ee696ac852da4bd3b5d6c835480 |
|
MD5 | 16655bd4d608fb0afd4746f3dd553a4b |
|
BLAKE2b-256 | f915c7bb95985fd0086fa7f92919768926b11cb4667e92878f3d31533175416b |