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
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
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.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327e39cbb3bb898bf1410930b0d9056cfc94c732732ac8cdc79f00765fddd26a |
|
MD5 | eff03bc9792e838b36a314eb256833ef |
|
BLAKE2b-256 | e380a5d1c4a9e58b2ba51ca59665a0cb908947150a91a0f25fc5247cf7d44718 |
Close
Hashes for requirements_language_server-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e651ae51d0d0072c981d9ede6d7fcd73444eb00280bb45db6b9337446cabeaeb |
|
MD5 | e937ef93defb755e9aedd7d70ce8a1cf |
|
BLAKE2b-256 | 4ff1a52e926af548a16b1d702d1047ccae555ad0c43bb623b79140c8abeb5b79 |