Skip to content

chore: upgrade dependency lockfiles to resolve dependabot alerts#25

Merged
Flix6x merged 1 commit into
mainfrom
chore/upgrade-deps
Jul 22, 2026
Merged

chore: upgrade dependency lockfiles to resolve dependabot alerts#25
Flix6x merged 1 commit into
mainfrom
chore/upgrade-deps

Conversation

@Flix6x

@Flix6x Flix6x commented Jul 22, 2026

Copy link
Copy Markdown
Member

Resolves all 46 open dependabot alerts (https://github.com/FlexMeasures/flexmeasures-s2/security/dependabot), which all live in the pip-compile lockfiles rather than in real dependency declarations.

Changes:

  • Recompiled requirements/{app,test,dev}.txt with pip-compile --upgrade, using Python 3.11 to match CI (the previous lock was compiled with 3.12). Notable bumps: Pillow 11.1.0 → 12.3.0 (it's transitive via flexmeasures → darts → matplotlib, so it can't simply be removed), werkzeug 3.1.8, flask 3.1.3, flask-cors 6.0.5, jinja2 3.1.6.
  • Dropped the obsolete pre-commit/virtualenv pins in dev.in — they existed only because FlexMeasures used to hard-pin its dependencies (FlexMeasures should not pin its dependencies in the Pypi distribution flexmeasures#648), which it no longer does. This lets virtualenv resolve past its alert threshold.
  • Bumped black 22.10.0 → 25.1.0 (alert wants ≥24.3.0) in both dev.in and .pre-commit-config.yaml; the only resulting reformat was an ellipsis-class stub in scheduler/schemas.py, rewritten as pass to keep flake8 happy.

Tests pass locally with the upgraded environment.

🤖 Generated with Claude Code

Recompile requirements/*.txt with pip-compile --upgrade (Python 3.11,
matching CI), clearing all open dependabot alerts, notably Pillow
(now 12.3.0, pulled in via darts -> matplotlib).

Also drop the obsolete pre-commit/virtualenv pins in dev.in (FlexMeasures
no longer hard-pins its dependencies) and bump black to 25.1.0 in both
dev.in and .pre-commit-config.yaml, reformatting accordingly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: pypi dill is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: requirements/app.txtpypi/dill@0.4.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/dill@0.4.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: pypi pycparser is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: requirements/app.txtpypi/pycparser@3.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/pycparser@3.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: pypi pycparser is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: requirements/app.txtpypi/pycparser@3.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/pycparser@3.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@Flix6x
Flix6x merged commit d8206c2 into main Jul 22, 2026
5 checks passed
@Flix6x
Flix6x deleted the chore/upgrade-deps branch July 22, 2026 15:16
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.

1 participant