Skip to content

Update tool "black" #748

@ckunki

Description

@ckunki

PTB uses black for checking and fixing code formatting.

Lately, a security vulnerability has been reported for black: https://github.com/exasol/python-toolbox/security/dependabot/29

Updating black as requested raises formatting issues:

Warning: Python 3.10 cannot parse code formatted for Python 3.14. To fix this:

  • run Black with Python 3.14,
  • set --target-version to py310, or
  • use --fast to skip the safety check.

Black's safety check verifies equivalence by parsing the AST, which fails when the running Python is older than the target version.

Would reformat

  • exasol/toolbox/tools/lint.py
  • exasol/toolbox/metrics.py
  • exasol/toolbox/util/dependencies/licenses.py
  • exasol/toolbox/util/release/changelog.py
  • exasol/toolbox/tools/security.py
  • test/integration/util/dependencies/audit_integration_test.py
  • test/unit/nox/_format_test.py
  • test/unit/report_test.py
  • test/unit/nox/_artifacts_test.py
  • test/unit/util/dependencies/audit_test.py
  • test/unit/security_test.py
  • test/unit/util/release/changelog_test.py

Metadata

Metadata

Assignees

Labels

securitySecurity related change

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions