Skip to main content

An opinionated formatter for configuration files.

Project description

DapperData

DapperData is an opinionated formatter for YAML and JSON files.

It has two options- fix files in place, or just yell about files that fail.

Usage

Install

pip install dapperdata

Fix All Files in Place

If you want to fix all of the files in your current directory, recursively, run this command-

dapperdata pretty . --no-dry-run

Test Files without Changing

You can use dapperdata to run a test in CI to confirm that all of the files already match the preferred styling.

dapperdata pretty .

This will return an list of all files to change, and will return a status code of 1 if any changes are needed. If no changes are needed the success status code (0) is returned.

Configuration

pyproject.toml

[tool.dapperdata]
exclude_paths = [".venv", "tests", ".git", ".vscode"]

Environment Variables

DAPPERDATA_EXCLUDE_PATHS='[".venv", "tests", ".git", ".vscode"]'

Excluded Files

If a .gitignore file is present the directories in it will be excluded from scans.

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

dapperdata-0.4.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

dapperdata-0.4.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file dapperdata-0.4.0.tar.gz.

File metadata

  • Download URL: dapperdata-0.4.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dapperdata-0.4.0.tar.gz
Algorithm Hash digest
SHA256 52181a531904164f74af5c6d9fbc6e91bf7bcb498d6d403f3d5cf52fbee0234e
MD5 7cb6c13a6cd26cbecfb77e5ae2e44539
BLAKE2b-256 53dcec457d2eeee50ef2dde635cdfb94df8e49988c16fe6336bae3bd04d3f017

See more details on using hashes here.

File details

Details for the file dapperdata-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: dapperdata-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dapperdata-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9bdfbd9f336705d4feed8ada32a1115f101650a11ef2fb45f3fcaa99aec5df7
MD5 9003a0fb0fe3c6d4c5c41c0afce91ab5
BLAKE2b-256 dd43b5ca60d3f6d832897352d125825d8ceaf142ad5c720c7a51e996dbfb5d61

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