chore(deps): update dependency csvkit to v2 - autoclosed #54
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.
This PR contains the following updates:
^1.1.0
->^2.0.0
Release Notes
wireservice/csvkit (csvkit)
v2.0.1
Compare Source
/scripts/csvsql
adds :code:--min-col-len
and :code:--col-len-multiplier
options./scripts/sql2csv
adds a :code:--engine-option
option.docker pull ghcr.io/wireservice/csvkit:latest
./scripts/csvstat
no longer errors when a column is a time delta and :code:--json
is set.sys.argv
on Windows, glob patterns, user directories, and environment variables are expanded.v2.0.0
Compare Source
This is the first major release since December 27, 2016. Thank you to all :ref:
contributors<authors>
, including 44 new contributors since 1.0.0!Want to use csvkit programmatically? Check out
agate <https://agate.readthedocs.io/en/latest/>
__, used internally by csvkit.BACKWARDS-INCOMPATIBLE CHANGES:
:doc:
/scripts/csvclean
now writes its output to standard output and its errors to standard error, instead of tobasename_out.csv
andbasename_err.csv
files. Consequently:--dry-run
option is removed. The :code:--dry-run
option changed error output from the CSV format used inbasename_err.csv
files to a prosaic format likeLine 1: Expected 2 columns, found 3 columns
.No errors.
,42 errors logged to basename_err.csv
and42 rows were joined/reduced to 24 rows after eliminating expected internal line breaks.
is not written.:doc:
/scripts/csvclean
no longer reports or fixes errors by default; it errors if no checks or fixes are enabled. Opt in to the original behavior using the :code:--length-mismatch
and :code:--join-short-rows
options. See new options below.:doc:
/scripts/csvclean
no longer omits rows with errors from the output. Opt in to the original behavior using the :code:--omit-error-rows
option.:doc:
/scripts/csvclean
joins short rows using a newline by default, instead of a space. Restore the original behavior using the :code:--separator " "
option.In brief, to restore the original behavior for :doc:
/scripts/csvclean
:.. code-block:: bash
csvclean --length-mismatch --omit-error-rows --join-short-rows --separator " " myfile.csv
Other changes:
feat: :doc:
/scripts/csvclean
adds the options:--length-mismatch
, to error on data rows that are shorter or longer than the header row--empty-columns
, to error on empty columns--enable-all-checks
, to enable all error reporting--omit-error-rows
, to omit data rows that contain errors, from standard output--label LABEL
, to add a "label" column to standard error--header-normalize-space
, to strip leading and trailing whitespace and replace sequences of whitespace characters by a single space in the header--join-short-rows
, to merge short rows into a single row--separator SEPARATOR
, to change the string with which to join short rows (default is newline)--fill-short-rows
, to fill short rows with the missing cells--fillvalue FILLVALUE
, to change the value with which to fill short rows (default is none)feat: The :code:
--quoting
option accepts 4 (csv.QUOTE_STRINGS <https://docs.python.org/3/library/csv.html#csv.QUOTE_STRINGS>
) and 5 (csv.QUOTE_NOTNULL <https://docs.python.org/3/library/csv.html#csv.QUOTE_NOTNULL>
) on Python 3.12.feat: :doc:
/scripts/csvformat
: The :code:--out-quoting
option accepts 4 (csv.QUOTE_STRINGS <https://docs.python.org/3/library/csv.html#csv.QUOTE_STRINGS>
) and 5 (csv.QUOTE_NOTNULL <https://docs.python.org/3/library/csv.html#csv.QUOTE_NOTNULL>
) on Python 3.12.fix: :doc:
/scripts/csvformat
: The :code:--out-quoting
option works with 2 (csv.QUOTE_NONUMERIC <https://docs.python.org/3/library/csv.html#csv.QUOTE_NOTNUMERIC>
__). Use the :code:--locale
option to set the locale of any formatted numbers.fix: :doc:
/scripts/csvclean
: The :code:--join-short-rows
option no longer reports length mismatch errors that were fixed.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.