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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dapperdata-0.3.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.1

File hashes

Hashes for dapperdata-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2564cb99ddbf8bcb6b4d2087da1698f8b98e7d744c84fcbc5fcd2e19aef9d7cd
MD5 502d9234d580a565de30ae41fdb65061
BLAKE2b-256 3390fc16184af441c6e83b1dc55c47c66b09d706039b3a2b6cbda2e96d668252

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dapperdata-0.3.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.1

File hashes

Hashes for dapperdata-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2fe29bafe863a1a3c40be9223edd920cefe6d1c272ae14e0ed747272f07dfb5
MD5 31d27d4ed49f0116bcc954c3c5e884a1
BLAKE2b-256 ea884ab9623a7538b24c1620221d938666bd1fb4f9a1dd2b1d41aed2775225fe

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