Adding column_date_formats config option#1486
Merged
j-bennet merged 1 commit intodbcli:mainfrom Mar 22, 2025
Merged
Conversation
Contributor
|
@dougharris This PR will need conflicts resolved. |
Contributor
Author
|
Conflict resolved |
Contributor
Author
|
builds are failing because this PR depends on this PR in cli_helpers |
Contributor
|
@dougharris |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1486 +/- ##
==========================================
- Coverage 80.13% 71.64% -8.50%
==========================================
Files 25 25
Lines 3126 3170 +44
==========================================
- Hits 2505 2271 -234
- Misses 621 899 +278 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Allows per-column formatting for date, time, datetime like columns. Bumping cli_helpers to 2.4.0 for the timestamp formatting preprocessor.
Contributor
Author
|
@j-bennet Updated and rebased on latest main |
Contributor
|
Nice. Merging! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Allows per-column formatting for date, time, datetime like columns.
Add a column_date_formats section to your config file with separate lines for each column that you'd like to specify a format using name=format. Use standard Python strftime formatting strings.
More details in #1402
Checklist
changelog.rst.AUTHORSfile (or it's already there).pip install pre-commit && pre-commit install), and ranblackon my code.