Skip to main content

Creation and maintenance of `exclude` file lists for common code quality tools.

Project description

debtcloset

Creation and maintenance of "exclude" file lists for common code quality tools.

Integrating a new code quality tool in an established repo typically requires a transitional period of ignoring/excluding a significant fraction of files for pre-commit checks or continuous integration testing. During such a transition, your technical "debt closet" is the collection of excluded files. debtcloset streamlines the creating and maintenance of your debt closet and includes tools to keep it up-to-date to reflect code changes.

Quick start

We're on pypi so you can just pip install debtcloset or poetry add debtcloset etc.

pyright with pyproject.toml

To update your pyproject.toml's pyright configuration to exclude all files that currently fail pyright checks, simply do

from debtcloset.pyright.toml import exclude
exclude()

ruff with pyproject.toml

To update your pyproject.toml's pyright configuration to exclude all files that currently fail ruff checks, simply do

from debtcloset.ruff.toml import exclude
exclude()

Development

Install poetry:

curl -sSL https://install.python-poetry.org | python3 -

Install pyenv and its virtualenv plugin. Then:

pyenv install 3.12.2
pyenv global 3.12.2
pyenv virtualenv 3.12.2 debtcloset
pyenv activate debtcloset

Install this package and its dependencies in your virtual env:

poetry install --with extras --with dev

Set up git hooks:

pre-commit install

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

debtcloset-0.0.5.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

debtcloset-0.0.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file debtcloset-0.0.5.tar.gz.

File metadata

  • Download URL: debtcloset-0.0.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for debtcloset-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c20db61b47acf9b646b29050f88a14afe11a53b7a286afdb8761d4bb8f1a72a7
MD5 ab64492e73ee06e0a4d4d226336cc6c0
BLAKE2b-256 0cd0961141305053598c122004accc3e53fbb92a5d8873f0aacb19bf8a86f101

See more details on using hashes here.

File details

Details for the file debtcloset-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: debtcloset-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for debtcloset-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 40653c7880c620be288beb590602161f31a1e8c2ef276d2885d6f9f3df7fcc92
MD5 c0c8e7067a9aaa43b11b2fda5bbdb5bf
BLAKE2b-256 7ffd45a828871f141dd32da494a6fb9f83d3fe3f1b0007f1f502379d93bcbf8e

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