mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
lib/py: reduce code duplication
Refactor lib/py/images/images.py to reduce code duplication by extracting repetitive code into helper functions and private methods. This improves code readability and maintainability, as well as reducing the risk of bugs caused by duplicated code. Additionally, in Makefile, lib/py/images/images.py is added to the list of files to run by flake8 during CI. Fixes: #340 Signed-off-by: Kouame Behouba Manasse <behouba@gmail.com>
This commit is contained in:
parent
85b5c1e451
commit
a0cc95c03e
2 changed files with 53 additions and 52 deletions
1
Makefile
1
Makefile
|
|
@ -417,6 +417,7 @@ lint:
|
|||
flake8 --config=scripts/flake8.cfg test/inhfd/*.py
|
||||
flake8 --config=scripts/flake8.cfg test/others/rpc/config_file.py
|
||||
flake8 --config=scripts/flake8.cfg lib/py/images/pb2dict.py
|
||||
flake8 --config=scripts/flake8.cfg lib/py/images/images.py
|
||||
flake8 --config=scripts/flake8.cfg scripts/criu-ns
|
||||
flake8 --config=scripts/flake8.cfg scripts/crit-setup.py
|
||||
flake8 --config=scripts/flake8.cfg coredump/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue