Skip to content

Commit 1bf0949

Browse files
authored
Updated pylintrc to version 3.2 (#771)
1 parent 6b1a063 commit 1bf0949

9 files changed

+26
-10
lines changed

.pylintrc

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pylint 3.0.x configuration file
1+
# Pylint 3.2.x configuration file
22
#
33
# This file is generated by l2tdevtools update-dependencies.py, any dependency
44
# related changes should be made in dependencies.ini.
@@ -29,6 +29,7 @@ clear-cache-post-run=no
2929
# A comma-separated list of package or module names from where C extensions may
3030
# be loaded. Extensions are loading into the active Python interpreter and may
3131
# run arbitrary code.
32+
# extension-pkg-allow-list=
3233
extension-pkg-allow-list=pybde,pycaes,pyewf,pyfcrypto,pyfsapfs,pyfsext,pyfsfat,pyfshfs,pyfsntfs,pyfsxfs,pyfvde,pyfwnt,pyluksde,pymodi,pyphdi,pyqcow,pysigscan,pysmdev,pysmraw,pytsk3,pyvhdi,pyvmdk,pyvsapm,pyvsgpt,pyvshadow,pyvslvm,xattr
3334

3435
# A comma-separated list of package or module names from where C extensions may
@@ -63,10 +64,11 @@ ignore-paths=
6364
# Emacs file locks
6465
ignore-patterns=^\.#
6566

66-
# List of module names for which member attributes should not be checked
67-
# (useful for modules/projects where namespaces are manipulated during runtime
68-
# and thus existing member attributes cannot be deduced by static analysis). It
69-
# supports qualified module names, as well as Unix pattern matching.
67+
# List of module names for which member attributes should not be checked and
68+
# will not be imported (useful for modules/projects where namespaces are
69+
# manipulated during runtime and thus existing member attributes cannot be
70+
# deduced by static analysis). It supports qualified module names, as well as
71+
# Unix pattern matching.
7072
ignored-modules=
7173

7274
# Python code to execute, usually for sys.path manipulation such as
@@ -85,11 +87,16 @@ limit-inference-results=100
8587

8688
# List of plugins (as comma separated values of python module names) to load,
8789
# usually to register additional checkers.
90+
# load-plugins=
8891
load-plugins=pylint.extensions.docparams
8992

9093
# Pickle collected data for later comparisons.
9194
persistent=yes
9295

96+
# Resolve imports to .pyi stubs if available. May reduce no-member messages and
97+
# increase not-an-iterable messages.
98+
prefer-stubs=no
99+
93100
# Minimum Python version to use for version dependent checks. Will default to
94101
# the version used to run pylint.
95102
py-version=3.12
@@ -440,7 +447,6 @@ confidence=HIGH,
440447
# --enable=similarities". If you want to run only the classes checker, but have
441448
# no Warning level messages displayed, use "--disable=all --enable=classes
442449
# --disable=W".
443-
444450
disable=assignment-from-none,
445451
bad-inline-option,
446452
consider-using-f-string,
@@ -478,6 +484,7 @@ disable=assignment-from-none,
478484
# either give multiple identifier separated by comma (,) or put this option
479485
# multiple time (only on the command line, not in the configuration file where
480486
# it should appear only once). See also the "--disable" option for examples.
487+
# enable=
481488
enable=c-extension-no-member
482489

483490

@@ -510,6 +517,11 @@ max-nested-blocks=5
510517
# printed.
511518
never-returning-functions=sys.exit,argparse.parse_error
512519

520+
# Let 'consider-using-join' be raised when the separator to join on would be
521+
# non-empty (resulting in expected fixes of the type: ``"- " + " -
522+
# ".join(items)``)
523+
suggest-join-with-non-empty-separator=yes
524+
513525

514526
[REPORTS]
515527

dfvfs/encryption/aes_decrypter.py

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def Decrypt(self, encrypted_data, finalize=False):
8282
remaining_encrypted_data = encrypted_data[-block_offset:]
8383
encrypted_data = encrypted_data[:-block_offset]
8484

85+
decrypted_data = b''
8586
if self._cipher_mode == definitions.ENCRYPTION_MODE_CBC:
8687
decrypted_data = pycaes.crypt_cbc(
8788
self._aes_context, pycaes.crypt_modes.DECRYPT,

dfvfs/encryption/blowfish_decrypter.py

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def Decrypt(self, encrypted_data, finalize=False):
8484
remaining_encrypted_data = encrypted_data[-block_offset:]
8585
encrypted_data = encrypted_data[:-block_offset]
8686

87+
decrypted_data = b''
8788
if self._cipher_mode == definitions.ENCRYPTION_MODE_CBC:
8889
decrypted_data = pyfcrypto.crypt_blowfish_cbc(
8990
self._blowfish_context, pyfcrypto.crypt_modes.DECRYPT,

dfvfs/encryption/des3_decrypter.py

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def Decrypt(self, encrypted_data, finalize=False):
8484
remaining_encrypted_data = encrypted_data[-block_offset:]
8585
encrypted_data = encrypted_data[:-block_offset]
8686

87+
decrypted_data = b''
8788
if self._cipher_mode == definitions.ENCRYPTION_MODE_CBC:
8889
decrypted_data = pyfcrypto.crypt_des3_cbc(
8990
self._des3_context, pyfcrypto.crypt_modes.DECRYPT,

dfvfs/lib/cpio.py

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def _ReadFileEntry(self, file_object, file_offset):
118118
Raises:
119119
FileFormatError: if the file entry cannot be read.
120120
"""
121+
data_type_map = None
121122
if self.file_format == 'bin-big-endian':
122123
data_type_map = self._CPIO_BINARY_BIG_ENDIAN_FILE_ENTRY
123124
elif self.file_format == 'bin-little-endian':

run_tests.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# -*- coding: utf-8 -*-
33
"""Script to run the tests."""
44

5-
from __future__ import print_function
6-
75
import sys
86
import unittest
97

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = dfvfs
3-
version = 20240505
3+
version = 20241006
44
description = Digital Forensics Virtual File System (dfVFS).
55
long_description = dfVFS, or Digital Forensics Virtual File System, provides read-only access to file-system objects from various storage media types and file formats. The goal of dfVFS is to provide a generic interface for accessing file-system objects, for which it uses several back-ends that provide the actual implementation of the various storage media types, volume systems and file systems.
66
long_description_content_type = text/plain

tests/helpers/volume_scanner.py

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def UnlockEncryptedVolume(
9898
Returns:
9999
bool: True if the volume was unlocked.
100100
"""
101+
password = None
102+
101103
if locked_scan_node.type_indicator == (
102104
definitions.TYPE_INDICATOR_APFS_CONTAINER):
103105
password = self._APFS_PASSWORD

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ deps =
5353
-rrequirements.txt
5454
-rtest_requirements.txt
5555
docformatter
56-
pylint >= 3.0.0, < 3.1.0
56+
pylint >= 3.2.0, < 3.3.0
5757
setuptools
5858
yamllint >= 1.26.0
5959
commands =

0 commit comments

Comments
 (0)