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.1.tar.gz (6.6 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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dapperdata-0.2.1.tar.gz
  • Upload date:
  • Size: 6.6 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.1.tar.gz
Algorithm Hash digest
SHA256 6eb680440b3927015be734b5f04288d1b3966407fd977affa9435d4c36359017
MD5 3aa68a93f5ee24340f5c37520da5ca16
BLAKE2b-256 4c3c4df39220b837954ede8ec7dff324fe88902881383599f1cbf370db02cff6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dapperdata-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41d4006edef91bddedd7088af6ee1042a96ed9950192c468f8812f7cb2ac8920
MD5 2890f853ea85069c6c997c76a81cd23a
BLAKE2b-256 605f31cdb8ddd08765bddbcfd68d465bf52ae6a3e18df91fd3d1753108355d65

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