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.1.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.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: di_linter-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 27f359c2f7f4f004f490276bd6d886a54156acc4862a64ae567becffd0284949
MD5 df3b435414c4e31371b7198a7b942fc5
BLAKE2b-256 80756fa22add5443ecab0d6e1b3f79dc91bfbf5ada4f1960606d34566f333157

See more details on using hashes here.

File details

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

File metadata

  • Download URL: di_linter-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab1cfea1da3b236a85b6f9a0df3fe163b0d65dee15fde7d8bab89ad5239b2bbc
MD5 a897a1ef644201016657338b23bf67fd
BLAKE2b-256 caab0d82ad8276acdb6624b4756fff3c42d1068f4ec0000c184a788c786fc1c2

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