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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 536283cfe4bec905b95c19552bdca6ddb644d76df0ecdff597159e423f2844fc |
|
MD5 | 8d8b22911927fe35a105b448f727da7f |
|
BLAKE2b-256 | ecbbd32792227005c4ec79649cf86db78127d3f06b6be857c8c7b1ce78f0f56a |
Close
Hashes for requirements_language_server-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01f1d36b2cf722215b04c66172d2a32e243a8f1374ce4003781fbe502bf39ada |
|
MD5 | 98f08eba5b2e653867f1974cbaffbea6 |
|
BLAKE2b-256 | 67cf695323125fd1269ac31881a6172b008b542532ac258fe27ab23f68fd9993 |