Skip to main content

requirements.txt language server

Project description

requirements-language-server

readthedocs pre-commit.ci status github/workflow codecov DeepSource

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

pypi/status pypi/v pypi/downloads pypi/format pypi/implementation pypi/pyversions

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.txts and display errors for all pip's options. For other requirements.txts, we recognize them as pip's requirements.txts.

Features:

  • diagnostic
  • format: sort packages
  • go to definition: jump to first repeated package
  • go to reference: jump to all other repeated packages
  • document link: open package's pypi homepage
  • document hover & completion:
    • pip's options
    • package: requires pip-cache. Must pip-cache update before.

Other features:

  • pre-commit-hooks
    • linter
    • formatter

Screenshots

Diagnostic

diagnostic

Document Hover

module

option

Completion

module

option

file

Read readthedocs to know more.

Related Projects

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requirements-language-server-0.0.8.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file requirements-language-server-0.0.8.tar.gz.

File metadata

File hashes

Hashes for requirements-language-server-0.0.8.tar.gz
Algorithm Hash digest
SHA256 8ce82fae6bc99ea22e7f6f79f4c61fef012ec04cef2618feeb97a21c5aa9bde7
MD5 d6fb241c4871eee86401d8fa3425776e
BLAKE2b-256 6b343b0907a2a6543c29b58760b851966ee4fc1fd31e27df90d9e0401d15c466

See more details on using hashes here.

File details

Details for the file requirements_language_server-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for requirements_language_server-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 80ebc6dc11dc0c0f19dd1996837ef4f38b2bafb36f532ff512fd588063016e63
MD5 8bca9734b81962191c5ff6a3a83808e4
BLAKE2b-256 226f23c9204c901c16b64b68d26ff4d1150d0c85fe3f0997204abda15e14e4bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page