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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31dc63ee67325dfb91f664e17b593b9cd0034ff6bc28d8c5c1bf2211a065cbb3 |
|
MD5 | 4b1b5c6c1030667c552a9d4abb8af6eb |
|
BLAKE2b-256 | d16435d4db7742feec6ba4f8b85179d4113e2142bfef7be3139083792138a260 |
Close
Hashes for requirements_language_server-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b38d0d90d1fecfd71313739731fb9a7fc718f24edbf92d107c7467d2450d53 |
|
MD5 | ccde9e1992131e718530f5ce9494872d |
|
BLAKE2b-256 | 94ae89c6b353091fd991d6fe4924ef7befd38a39668df10034104156ffa34ea3 |