Skip to content

codecs: drop the unused import that fails the ruff job of #1036 - #2

Merged
forensicxlab merged 1 commit into
forensicxlab:feature/hibernation-layerfrom
Ozer0x777:ci-lint-fix
Oct 19, 2026
Merged

forensicxlab merged 1 commit into
forensicxlab:feature/hibernation-layerfrom
Ozer0x777:ci-lint-fix

Conversation

@Ozer0x777

Copy link
Copy Markdown

The lint-and-format job of volatilityfoundation#1036 fails since the last merge, on a line that predates it:

volatility3/framework/layers/codecs/__init__.py:3:8: F401 `codecs` imported but unused

import codecs (the standard module) was added to volatility3/framework/layers/codecs/__init__.py on this branch in 2024 and nothing uses it. This PR makes the file identical to the one on volatilityfoundation/volatility3 develop (the import removed, same header).

Checked locally with the exact CI tool, ruff 0.17.1, on this branch head: ruff check . -> "All checks passed!", ruff format --check -> 351 files already formatted. The other jobs of volatilityfoundation#1036 (build, CodeQL, tests) already pass.

volatility3/framework/layers/codecs/__init__.py imported the standard
`codecs` module without using it (F401), which makes the lint-and-format
workflow of the upstream PR volatilityfoundation#1036 fail with ruff 0.17.1. The file is now
identical to the one on volatilityfoundation/volatility3 develop.
@forensicxlab
forensicxlab merged commit 2e12140 into forensicxlab:feature/hibernation-layer Oct 19, 2026
3 checks passed
@Ozer0x777
Ozer0x777 deleted the ci-lint-fix branch October 24, 2026 20:27
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