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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a2a8a75bd1a93d2c0898c08d1f0aca8a61a8e560f1b2f7d8874c54c0951c8f |
|
MD5 | d36ead043102db03e012434e2b6ada21 |
|
BLAKE2b-256 | b386243be0bc1dc662393a21d4703015c060db1f27d0cec77ca69b122e77560f |
Close
Hashes for requirements_language_server-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a623dcd61e489a0e83be8a66ed29ee285038294ed732535618b2a9fe3383eb46 |
|
MD5 | 0d838a73e21df3f07fc975bbad49e2ef |
|
BLAKE2b-256 | 9e804ae86b4317a605e80d86db5049dbed6896b9d1776ad84c5f9023c9157243 |