Skip to content

Bump black to 26.3.1#71

Merged
marc-queiroz merged 1 commit into
masterfrom
marc-queiroz/cve/gprofiler-black-26.3.1
May 13, 2026
Merged

Bump black to 26.3.1#71
marc-queiroz merged 1 commit into
masterfrom
marc-queiroz/cve/gprofiler-black-26.3.1

Conversation

@marc-queiroz
Copy link
Copy Markdown

Summary

Pins black==26.3.1 (was ==25.1.0) to pick up the upstream fix for
CVE-2024-21503 (ReDoS in lines_with_leading_tabs_expanded triggered
by inputs with many leading tab characters).

Why source-file edits are bundled

Black 26.x tightens a couple of formatting rules. Two existing files on
master fail black --check under 26.3.1 even though they pass under
25.1.0. They're re-flowed in this PR so the bump lands without leaving
the repo in a --check-failing state:

  • gprofiler/metadata/application_identifiers_java.py — a multi-line
    _logger.warning(...) call collapses back to a single statement.
  • gprofiler/metadata/py_module_version.py — adds a blank line between
    the module docstring and the first import.

No behavior changes; whitespace / line-arrangement only.

Test plan

  • pip install -r dev-requirements.txt resolves cleanly.
  • black --check . passes under 26.3.1 after these edits.
  • Existing flake8 / mypy baselines are unaffected (no new failures
    introduced; pre-existing failures, if any, remain pre-existing).

CVE

  • CVE-2024-21503
    black <24.3.0 had a ReDoS in tab-expansion logic. Bumping to 26.3.1
    also tracks several intermediate releases.

Related

Independent of (but contemporaneous with) the requests==2.33.0 bump in
marc-queiroz/cve/gprofiler-requests-2.33.0.
This PR is not Draft — it has no submodule/upstream blocker.

Pins black==26.3.1 (was ==25.1.0) to pick up the upstream fix for
CVE-2024-21503 (ReDoS in lines_with_leading_tabs_expanded affecting
strings with many leading tab characters).

Black 26.x changes a few formatting rules; the two source-file edits
in this PR re-flow lines that black 25.1.0 left in place and that
black 26.3.1 wants reformatted:

- gprofiler/metadata/application_identifiers_java.py: collapse a
  multi-line _logger.warning call back to a single statement.
- gprofiler/metadata/py_module_version.py: blank line after the module
  docstring before the import block.

Running 'black --check .' against the repo with 26.3.1 produces no
further diffs after these two edits.

Made-with: Cursor
Copy link
Copy Markdown

@artursarlo artursarlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@marc-queiroz marc-queiroz merged commit dd305bc into master May 13, 2026
13 of 35 checks passed
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.

2 participants