Avatar for the UnknownPlatypus user
UnknownPlatypus
djangofmt
BlogDocsChangelog

Performance History

Latest Results

chore(deps): lock file maintenance
renovate/lock-file-maintenance
1 day ago
chore(deps): update all non-major dependencies
renovate/all-minor-patch
2 days ago
chore(deps): lock file maintenance
renovate/lock-file-maintenance
3 days ago
chore(deps): update all non-major dependencies
renovate/all-minor-patch
3 days ago
feat(format): Add `--preserve-unquoted-attrs` option (#271) * Add --preserve-unquoted-attrs CLI flag and pyproject.toml option Wire the new markup_fmt preserve_unquoted_attrs option through djangofmt's CLI, pyproject.toml config, and FormatterConfig. When enabled, attribute values that were unquoted in the source (e.g., prop=True, count=42) remain unquoted in the output. This is useful for frameworks like Django Cotton that use unquoted attribute values to pass non-string types (booleans, numbers, template variables). Unquoted attribute values are valid HTML per spec. * Add tests for --preserve-unquoted-attrs option - Snapshot formatting test with Cotton component fixtures - Pyproject.toml config parsing test - FormatterConfig::from_args tests for CLI and pyproject precedence * Address review feedback - Update markup_fmt dependency to UnknownPlatypus/markup_fmt at merged commit - Use unwrap_or_default() instead of unwrap_or(false) - Add --no-preserve-unquoted-attrs negation flag using resolve_bool_arg - Restore r#" snapshot format to minimize diff - Refactor tests to use config.toml auto-loading pattern (matching markup_fmt) * Address second round of review feedback - Add disabled case to config.toml for exhaustive testing - Reuse PyprojectSettings for config.toml deserialization - build_config uses FormatterConfig::new with pyproject fields - run_format_test takes &FormatterConfig directly - Remove unused imports * Address review feedback round 3 - Fix clippy lints (needless raw string hashes, semicolon, for_each) - Reverse README diff direction to match repo convention (input -> output) - Document --no-preserve-unquoted-attrs hint in --help - Add test for CLI negation overriding pyproject true value - Rename test config sections to self-documenting snapshot suffixes --------- Co-authored-by: Thibaut Decombe <thibaut.decombe@gmail.com>
main
5 days ago

Latest Branches

CodSpeed Performance Gauge
0%
chore(deps): lock file maintenance#278
1 day ago
886f886
renovate/lock-file-maintenance
CodSpeed Performance Gauge
0%
chore(deps): update all non-major dependencies#277
2 days ago
1214601
renovate/all-minor-patch
CodSpeed Performance Gauge
-6%
5 days ago
8f563dd
blocktranslate-trimmed
© 2026 CodSpeed Technology
Home Terms Privacy Docs