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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cfe0da461be2d699fecf6f59f6e31d5685d7124a1129ca2b41db6c9deb4917d |
|
MD5 | 44bb1fcb03a7e3989ad3978c1333ce7e |
|
BLAKE2b-256 | 6fb731686d989d2030f77bd19708b4e75748f028c37de298e91cdb91ed167608 |
Close
Hashes for requirements_language_server-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30966566ac550ce03a4b9530969a37c9aeac89b5455044dfe15d47abfee92270 |
|
MD5 | c48464920c9e3abab72c74eedbc99dca |
|
BLAKE2b-256 | 5f9900c0ca019bd846acf7db942295505419ff56597587917a4c470e0fb85ea2 |