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.
Must
pip-cache update
before.
- 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
File details
Details for the file requirements-language-server-0.0.9.tar.gz
.
File metadata
- Download URL: requirements-language-server-0.0.9.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de0135c39af09f9a970c3acd9599d7d3b167ba4c0a6eed84f3d63eb8a5539ea8 |
|
MD5 | b0ac582181f7cd5d93a00fe7cc341414 |
|
BLAKE2b-256 | f01fdb191fc741c0d76291852e4a59c65e366874fc048146dd0547d88d0aff20 |
File details
Details for the file requirements_language_server-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: requirements_language_server-0.0.9-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab66ef84ee510000787b6a0592158c19f0e0dff0da039634d0b6e39917d336f5 |
|
MD5 | 738dc11a2d1392adc7dd90f52bca34d3 |
|
BLAKE2b-256 | f3a6ba6e79d5b2c034b2d431fc5af709275f1cd9560f50b4e18e37804c967233 |