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

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.2.3.tar.gz (7.1 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.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dapperdata-0.2.3.tar.gz
  • Upload date:
  • Size: 7.1 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.3.tar.gz
Algorithm Hash digest
SHA256 44ed7e5b68ca683b9e391223fee7b13170142409361699322082cb2deedfcba4
MD5 ba81173bf32d780041c9ef02dbe73be1
BLAKE2b-256 09487b75192d81e77a1c13270469d00d2ec7e71df8b3b5914792f27a1972ae69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dapperdata-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0728eda68282e7a5c4fd1ab5147e4095c3214542a3ffce9b29d2a94f1b328d66
MD5 36ea9dea3da2d6ae388a057fd1044c98
BLAKE2b-256 c78d1f659e6e9d34ee5e12ca4ad245e4c496ecd32d426670454f07af9c6199ce

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