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.
Metadata
Release files for dapperdata 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dapperdata-0.4.0.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dapperdata-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / dapperdata-0.4.0.tar.gz
| Download URL | dapperdata-0.4.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52181a531904164f74af5c6d9fbc6e91bf7bcb498d6d403f3d5cf52fbee0234e
|
|
BLAKE2b-256 checksum How to use checksums |
53dcec457d2eeee50ef2dde635cdfb94df8e49988c16fe6336bae3bd04d3f017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / dapperdata-0.4.0-py3-none-any.whl
| Download URL | dapperdata-0.4.0-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9bdfbd9f336705d4feed8ada32a1115f101650a11ef2fb45f3fcaa99aec5df7
|
|
BLAKE2b-256 checksum How to use checksums |
dd43b5ca60d3f6d832897352d125825d8ceaf142ad5c720c7a51e996dbfb5d61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|