diff --git a/.pylintrc b/.pylintrc index 877a22bf..33d61a71 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,4 +1,4 @@ -# Pylint 3.0.x configuration file +# Pylint 3.2.x configuration file # # This file is generated by l2tdevtools update-dependencies.py, any dependency # related changes should be made in dependencies.ini. @@ -29,6 +29,7 @@ clear-cache-post-run=no # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code. +# extension-pkg-allow-list= extension-pkg-allow-list= # A comma-separated list of package or module names from where C extensions may @@ -63,10 +64,11 @@ ignore-paths= # Emacs file locks ignore-patterns=^\.# -# List of module names for which member attributes should not be checked -# (useful for modules/projects where namespaces are manipulated during runtime -# and thus existing member attributes cannot be deduced by static analysis). It -# supports qualified module names, as well as Unix pattern matching. +# List of module names for which member attributes should not be checked and +# will not be imported (useful for modules/projects where namespaces are +# manipulated during runtime and thus existing member attributes cannot be +# deduced by static analysis). It supports qualified module names, as well as +# Unix pattern matching. ignored-modules= # Python code to execute, usually for sys.path manipulation such as @@ -85,11 +87,16 @@ limit-inference-results=100 # List of plugins (as comma separated values of python module names) to load, # usually to register additional checkers. +# load-plugins= load-plugins=pylint.extensions.docparams # Pickle collected data for later comparisons. persistent=yes +# Resolve imports to .pyi stubs if available. May reduce no-member messages and +# increase not-an-iterable messages. +prefer-stubs=no + # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. py-version=3.12 @@ -440,7 +447,6 @@ confidence=HIGH, # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use "--disable=all --enable=classes # --disable=W". - disable=assignment-from-none, bad-inline-option, consider-using-f-string, @@ -478,6 +484,7 @@ disable=assignment-from-none, # either give multiple identifier separated by comma (,) or put this option # multiple time (only on the command line, not in the configuration file where # it should appear only once). See also the "--disable" option for examples. +# enable= enable=c-extension-no-member @@ -510,6 +517,11 @@ max-nested-blocks=5 # printed. never-returning-functions=sys.exit,argparse.parse_error +# Let 'consider-using-join' be raised when the separator to join on would be +# non-empty (resulting in expected fixes of the type: ``"- " + " - +# ".join(items)``) +suggest-join-with-non-empty-separator=yes + [REPORTS] diff --git a/l2tdevtools/download_helpers/sourceforge.py b/l2tdevtools/download_helpers/sourceforge.py index 85d90c6e..2acd889a 100644 --- a/l2tdevtools/download_helpers/sourceforge.py +++ b/l2tdevtools/download_helpers/sourceforge.py @@ -52,6 +52,7 @@ def GetLatestVersion(self, project_name, version_definition): if not page_content: return None + matches = None if self._project_name == 'pyparsing': # The format of the project download URL is: # /projects/{project name}/files/{project name}/{project name}-{version}/ diff --git a/setup.cfg b/setup.cfg index 7f3d7c3d..4188700d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = l2tdevtools -version = 20230506 +version = 20241008 description = Development tools for the log2timeline projects long_description = Development tools for the log2timeline projects. long_description_content_type = text/plain diff --git a/tools/manage.py b/tools/manage.py index 9d2a6e53..033a89ca 100755 --- a/tools/manage.py +++ b/tools/manage.py @@ -883,6 +883,9 @@ def Main(): projects_file, distribution=options.distribution) action_tuple = options.action.split('-') + diff_header = None + new_packages = {} + new_versions = {} if action_tuple[0] == 'copr' and action_tuple[1] == 'diff': track = action_tuple[2] diff --git a/tox.ini b/tox.ini index 361374a1..1c0ea8c6 100644 --- a/tox.ini +++ b/tox.ini @@ -45,7 +45,7 @@ deps = -rrequirements.txt -rtest_requirements.txt docformatter - pylint >= 3.0.0, < 3.1.0 + pylint >= 3.2.0, < 3.3.0 setuptools yamllint >= 1.26.0 commands =