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
- Completion:
- pip's options
- package
Other features:
- pre-commit-hooks
- linter
- formatter
Screenshots
Diagnostic
Hover
Completion
How Does It Work
See here.
Related Projects
- requirements.txt.vim: syntax highlight for vim
- vim-polyglot: contains above
- bat: syntax highlight for less
- requirements-txt-fixer: sort package names
- pip-tools: check
requirements.txt
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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbddeec2a46a3aae4c5695eaeb0b11dd8e334f8f14c96192e2012543c55a8eb0 |
|
MD5 | a61de5dee2e894ccb845d52eba100835 |
|
BLAKE2b-256 | a7392c2c2d5d03be8acdca47d5e020f132feee5c2bed5db50ca561ee38c18b32 |
Close
Hashes for requirements_language_server-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 300f8d69b386c382e9dba748d485e4396183cf6d4527bfc62e97bbcc95cde7df |
|
MD5 | ec4acff537d1e98837cb3fcbca4215cc |
|
BLAKE2b-256 | 8b99e4b2f1b6fe86a6d775092da47055e53a0364eeec109d38f66b9dfe853edc |