Skip to main content

A python library

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

Fix All Files in Place

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

python -m dapperdata.cli 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.

python -m dapperdata.cli 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.2.2.tar.gz (7.0 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.2.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dapperdata-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d3f278f1bf6b3ef80c834764d083e032152d0ea010ebb6389f2d1ae47c502cec
MD5 2fc38cde9d5d4d3f5ea7b81fb3e48168
BLAKE2b-256 43de2cfa05e492bb9abc713a60444a29925b9d70e60713dce8dea2667a8ed582

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dapperdata-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05ded4629854fc7e6dec16cd862d3c4363993343621effba3122ca3fc61b4c98
MD5 ce78ca8e0a8cec8a493c70d8ec7d7c09
BLAKE2b-256 bbe45d7cedb5de4a8d7ba3dbeb10dcdb257e38235d4eb44be44041d01feb46b7

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