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.7.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for requirements-language-server-0.0.7.tar.gz
Algorithm Hash digest
SHA256 61eb7193687ff8b643c043771fb0f51e521adf9bfe51d8903505d91f09e2f3c7
MD5 4f19dac8fffdcd8788f688476dc657c2
BLAKE2b-256 cfade600d8fa065132385719d2a2bcec4bc43d0d029a3ebcc7b86cb94092a82a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for requirements_language_server-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 04f261fe136abc427cda83a07e447e164595c424ac84f0d7d5b8a52a9c865733
MD5 d81f1667b724bc85489296b3b0190b75
BLAKE2b-256 f5c2342412dde4a94dc1657417f67056288537e74e0d14e0daf3b3e6d698d70e

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