Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency csvkit to v2 - autoclosed #54

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 3, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
csvkit ^1.1.0 -> ^2.0.0 age adoption passing confidence

Release Notes

wireservice/csvkit (csvkit)

v2.0.1

Compare Source

  • feat: :doc:/scripts/csvsql adds :code:--min-col-len and :code:--col-len-multiplier options.
  • feat: :doc:/scripts/sql2csv adds a :code:--engine-option option.
  • feat: Add a Docker image: docker pull ghcr.io/wireservice/csvkit:latest.
  • feat: Add man pages to the sdist and wheel distributions.
  • fix: :doc:/scripts/csvstat no longer errors when a column is a time delta and :code:--json is set.
  • fix: When taking arguments from 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 to basename_out.csv and basename_err.csv files. Consequently:

    • The :code:--dry-run option is removed. The :code:--dry-run option changed error output from the CSV format used in basename_err.csv files to a prosaic format like Line 1: Expected 2 columns, found 3 columns.
    • Summary information like No errors., 42 errors logged to basename_err.csv and 42 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:

    • :code:--length-mismatch, to error on data rows that are shorter or longer than the header row
    • :code:--empty-columns, to error on empty columns
    • :code:--enable-all-checks, to enable all error reporting
    • :code:--omit-error-rows, to omit data rows that contain errors, from standard output
    • :code:--label LABEL, to add a "label" column to standard error
    • :code:--header-normalize-space, to strip leading and trailing whitespace and replace sequences of whitespace characters by a single space in the header
    • :code:--join-short-rows, to merge short rows into a single row
    • :code:--separator SEPARATOR, to change the string with which to join short rows (default is newline)
    • :code:--fill-short-rows, to fill short rows with the missing cells
    • :code:--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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency csvkit to v2 chore(deps): update dependency csvkit to v2 - autoclosed Aug 21, 2024
@renovate renovate bot closed this Aug 21, 2024
@renovate renovate bot deleted the renovate/csvkit-2.x branch August 21, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants