Skip to content

build(deps-dev): update chardet requirement from <6 to <8#545

Closed
dependabot[bot] wants to merge 1 commit into
v0.x.xfrom
dependabot/pip/chardet-lt-8
Closed

build(deps-dev): update chardet requirement from <6 to <8#545
dependabot[bot] wants to merge 1 commit into
v0.x.xfrom
dependabot/pip/chardet-lt-8

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 18, 2026

Updates the requirements on chardet to permit the latest version.

Release notes

Sourced from chardet's releases.

chardet 7.2.0

Features

  • Added include_encodings and exclude_encodings parameters to detect(), detect_all(), and UniversalDetector — restrict or exclude specific encodings from the candidate set, with corresponding -i/--include-encodings and -x/--exclude-encodings CLI flags (#343)
  • Added no_match_encoding (default "cp1252") and empty_input_encoding (default "utf-8") parameters — control which encoding is returned when no candidate survives the pipeline or the input is empty, with corresponding CLI flags (#343)
  • Added -l/--language flag to chardetect CLI — shows the detected language (ISO 639-1 code and English name) alongside the encoding (#342)

Fixes

  • Fixed null-separated ASCII data being misdetected as UTF-16-BE (#346, #347)

Full changelog: https://chardet.readthedocs.io/en/latest/changelog.html

Changelog

Sourced from chardet's changelog.

7.2.0 (2026-03-17)

Features:

  • Added include_encodings and exclude_encodings parameters to :func:~chardet.detect, :func:~chardet.detect_all, and :class:~chardet.UniversalDetector — restrict or exclude specific encodings from the candidate set, with corresponding -i/--include-encodings and -x/--exclude-encodings CLI flags (Dan Blanchard <https://github.com/dan-blanchard>, [#343](https://github.com/chardet/chardet/issues/343) <https://github.com/chardet/chardet/pull/343>)
  • Added no_match_encoding (default "cp1252") and empty_input_encoding (default "utf-8") parameters — control which encoding is returned when no candidate survives the pipeline or the input is empty, with corresponding CLI flags (Dan Blanchard <https://github.com/dan-blanchard>, [#343](https://github.com/chardet/chardet/issues/343) <https://github.com/chardet/chardet/pull/343>)
  • Added -l/--language flag to chardetect CLI — shows the detected language (ISO 639-1 code and English name) alongside the encoding (Dan Blanchard <https://github.com/dan-blanchard>, [#342](https://github.com/chardet/chardet/issues/342) <https://github.com/chardet/chardet/pull/342>)

7.1.0 (2026-03-11)

Features:

  • Added PEP 263 encoding declaration detection — # -*- coding: ... -*- and # coding=... declarations on lines 1–2 of Python source files are now recognized with confidence 0.95 (Dan Blanchard <https://github.com/dan-blanchard>, [#249](https://github.com/chardet/chardet/issues/249) <https://github.com/chardet/chardet/issues/249>)
  • Added chardet.universaldetector backward-compatibility stub so that from chardet.universaldetector import UniversalDetector works with a deprecation warning (Dan Blanchard <https://github.com/dan-blanchard>, [#341](https://github.com/chardet/chardet/issues/341) <https://github.com/chardet/chardet/issues/341>)

Fixes:

  • Fixed false UTF-7 detection of ASCII text containing ++ or +word patterns (Dan Blanchard <https://github.com/dan-blanchard>, [#332](https://github.com/chardet/chardet/issues/332) <https://github.com/chardet/chardet/issues/332>, [#335](https://github.com/chardet/chardet/issues/335) <https://github.com/chardet/chardet/pull/335>_)
  • Fixed 0.5s startup cost on first detect() call — model norms are now computed during loading instead of lazily iterating 21M entries (Dan Blanchard <https://github.com/dan-blanchard>_,

... (truncated)

Commits
  • 884996a docs: set 7.2.0 release date to 2026-03-17
  • 64361f8 docs: add CLI examples for --no-match-encoding and --empty-input-encoding
  • 89a9a4c Fix null-separated ASCII misdetected as UTF-16-BE (#347)
  • a98f097 docs: add example output to all CLI commands for consistency
  • d2f4ac2 docs: document 7.2.0 features (encoding filters, --language CLI flag)
  • 575fa96 test: add include_encodings accuracy preservation tests
  • 66e21fc fix: strengthen weak tests and remove duplicates
  • e1428c3 Add include/exclude encoding filters (#343)
  • 63e90b5 fix: pass --no-binary chardet for pinned versions with --pure
  • 2fe8993 fix: handle missing ISO_TO_LANGUAGE in older chardet versions
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [chardet](https://github.com/chardet/chardet) to permit the latest version.
- [Release notes](https://github.com/chardet/chardet/releases)
- [Changelog](https://github.com/chardet/chardet/blob/main/docs/changelog.rst)
- [Commits](chardet/chardet@1.1...7.2.0)

---
updated-dependencies:
- dependency-name: chardet
  dependency-version: 7.2.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels Mar 18, 2026
@dependabot dependabot Bot requested a review from a team as a code owner March 18, 2026 13:02
@dependabot dependabot Bot requested review from florian-wagner-frequenz and removed request for a team March 18, 2026 13:02
@dependabot dependabot Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels Mar 18, 2026
@frequenz-auto-dependabot frequenz-auto-dependabot Bot added the tool:auto-merged Auto-approved Dependabot PRs label Mar 18, 2026
@llucax llucax disabled auto-merge March 18, 2026 13:05
@llucax
Copy link
Copy Markdown
Contributor

llucax commented Mar 18, 2026

We don't want this, we want to keep it pinned to an older version as a hack to workaround #527.

@llucax llucax closed this Mar 18, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Mar 18, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/pip/chardet-lt-8 branch March 18, 2026 13:06
@llucax
Copy link
Copy Markdown
Contributor

llucax commented Mar 18, 2026

@dependabot ignore this major version

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Mar 18, 2026

OK, I won't notify you about version 7.x.x again, unless you re-open this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) tool:auto-merged Auto-approved Dependabot PRs type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant