Skip to main content

Static code analysis for search of dependencies injection

Project description

Dependency Injection Linter

Static code analysis for search of dependencies injection

Installation

pip install di-linter

Or

uv add --dev di-linter

Usage

  1. Run the script in the project's root directory and specify the project directory name
  di-linter project

Or

  uv run di-linter project
  1. Run the script in the project's root directory without arguments. It contains a toml config file where the project directory name is specified.
  di-linter

Or

  uv run di-linter

Configuration

Create a file toml in project root directory:

project-root = "project"
exclude-objects = ["Settings", "DIContainer"]
exclude-modules = ["endpoints.py"]

Output message

img.png

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

di_linter-1.0.2.tar.gz (719.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

di_linter-1.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file di_linter-1.0.2.tar.gz.

File metadata

  • Download URL: di_linter-1.0.2.tar.gz
  • Upload date:
  • Size: 719.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for di_linter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4e89bac2fdaa27f3eb54049b1a8d0dd316e72a6996211ff5f33410e2c0897267
MD5 533b844ebb8c81fc7717f3909a092e14
BLAKE2b-256 7d9b11b7d124aff742f21d39cba4298ff319112737f57e2f2c8f0440edefbe07

See more details on using hashes here.

File details

Details for the file di_linter-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: di_linter-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for di_linter-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cfa139313e0dea8f1111c4c1815a2bbc3b4c63cd60545ca7d98ea8a67f58c037
MD5 486c7d831e1d637d0ec3805d75c0a732
BLAKE2b-256 8932769439269ae78c59574e876254bca39bb00ab8080217261d89492d4a349e

See more details on using hashes here.

Supported by

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