ngshiheng / burplist

Web crawler for Burplist, a search engine for craft beers in Singapore
https://burplist.com
MIT License
11 stars 5 forks source link

chore(deps): update dependency pylint to v2.15.8 #119

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pylint (changelog) ==2.14.5 -> ==2.15.8 age adoption passing confidence

Release Notes

PyCQA/pylint ### [`v2.15.8`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.8): 2.15.8 [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.7...v2.15.8) ## False Positives Fixed - Document a known false positive for `useless-suppression` when disabling `line-too-long` in a module with only comments and no code. Closes [#​3368](https://togithub.com/PyCQA/pylint/issues/3368) - Fix `logging-fstring-interpolation` false positive raised when logging and f-string with `%s` formatting. Closes [#​4984](https://togithub.com/PyCQA/pylint/issues/4984) - Fixes false positive `abstract-method` on Protocol classes. Closes [#​7209](https://togithub.com/PyCQA/pylint/issues/7209) - Fix `missing-param-doc` false positive when function parameter has an escaped underscore. Closes [#​7827](https://togithub.com/PyCQA/pylint/issues/7827) - `multiple-statements` no longer triggers for function stubs using inlined `...`. Closes [#​7860](https://togithub.com/PyCQA/pylint/issues/7860) ### [`v2.15.7`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.7): 2.15.7 [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.6...v2.15.7) ## False Positives Fixed - Fix `deprecated-method` false positive when alias for method is similar to name of deprecated method. Closes [#​5886](https://togithub.com/PyCQA/pylint/issues/5886) - Fix a false positive for `used-before-assignment` for imports guarded by `typing.TYPE_CHECKING` later used in variable annotations. Closes [#​7609](https://togithub.com/PyCQA/pylint/issues/7609) ## Other Bug Fixes - Pylint will now filter duplicates given to it before linting. The output should be the same whether a file is given/discovered multiple times or not. Closes [#​6242](https://togithub.com/PyCQA/pylint/issues/6242), [#​4053](https://togithub.com/PyCQA/pylint/issues/4053) - Fixes a crash in `stop-iteration-return` when the `next` builtin is called without arguments. Closes [#​7828](https://togithub.com/PyCQA/pylint/issues/7828) ### [`v2.15.6`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.6) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.5...v2.15.6) ## False Positives Fixed - Fix false positive for `unhashable-member` when subclassing `dict` and using the subclass as a dictionary key. Closes [#​7501](https://togithub.com/PyCQA/pylint/issues/7501) - `unnecessary-list-index-lookup` will not be wrongly emitted if `enumerate` is called with `start`. Closes [#​7682](https://togithub.com/PyCQA/pylint/issues/7682) - Don't warn about `stop-iteration-return` when using `next()` over `itertools.cycle`. Closes [#​7765](https://togithub.com/PyCQA/pylint/issues/7765) ## Other Bug Fixes - Messages sent to reporter are now copied so a reporter cannot modify the message sent to other reporters. Closes [#​7214](https://togithub.com/PyCQA/pylint/issues/7214) - Fixes edge case of custom method named `next` raised an astroid error. Closes [#​7610](https://togithub.com/PyCQA/pylint/issues/7610) - Fix crash that happened when parsing files with unexpected encoding starting with 'utf' like `utf13`. Closes [#​7661](https://togithub.com/PyCQA/pylint/issues/7661) - Fix a crash when a child class with an `__init__` method inherits from a parent class with an `__init__` class attribute. Closes [#​7742](https://togithub.com/PyCQA/pylint/issues/7742) ### [`v2.15.5`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.5) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.4...v2.15.5) ## What's new in Pylint 2.15.5? Release date: 2022-10-21 ## False Positives Fixed - Fix a false positive for `simplify-boolean-expression` when multiple values are inferred for a constant. Closes [#​7626](https://togithub.com/PyCQA/pylint/issues/7626) ## Other Bug Fixes - Remove `__index__` dunder method call from `unnecessary-dunder-call` check. Closes [#​6795](https://togithub.com/PyCQA/pylint/issues/6795) - Fixed a multi-processing crash that prevents using any more than 1 thread on MacOS. The returned module objects and errors that were cached by the linter plugin loader cannot be reliably pickled. This means that `dill` would throw an error when attempting to serialise the linter object for multi-processing use. Closes [#​7635](https://togithub.com/PyCQA/pylint/issues/7635). ## Other Changes - Add a keyword-only `compare_constants` argument to `safe_infer`. Refs [#​7626](https://togithub.com/PyCQA/pylint/issues/7626) - Sort `--generated-rcfile` output. Refs [#​7655](https://togithub.com/PyCQA/pylint/issues/7655) ### [`v2.15.4`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.4) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.3...v2.15.4) ## False Positives Fixed - Fix the message for `unnecessary-dunder-call` for `__aiter__` and `__anext__`. Also only emit the warning when `py-version` >= 3.10. Closes [#​7529](https://togithub.com/PyCQA/pylint/issues/7529) ## Other Bug Fixes - Fix bug in detecting `unused-variable` when iterating on variable. Closes [#​3044](https://togithub.com/PyCQA/pylint/issues/3044) - Fixed handling of `--` as separator between positional arguments and flags. This was not actually fixed in 2.14.5. Closes [#​7003](https://togithub.com/PyCQA/pylint/issues/7003), Refs [#​7096](https://togithub.com/PyCQA/pylint/issues/7096) - Report `no-self-argument` rather than `no-method-argument` for methods with variadic arguments. Closes [#​7507](https://togithub.com/PyCQA/pylint/issues/7507) - Fixed an issue where `syntax-error` couldn't be raised on files with invalid encodings. Closes [#​7522](https://togithub.com/PyCQA/pylint/issues/7522) - Fix false positive for `redefined-outer-name` when aliasing `typing` e.g. as `t` and guarding imports under `t.TYPE_CHECKING`. Closes [#​7524](https://togithub.com/PyCQA/pylint/issues/7524) - Fixed a crash of the `modified_iterating` checker when iterating on a set defined as a class attribute. Closes [#​7528](https://togithub.com/PyCQA/pylint/issues/7528) - Fix bug in scanning of names inside arguments to `typing.Literal`. See https://peps.python.org/pep-0586/#literals-enums-and-forward-references for details. Refs [#​3299](https://togithub.com/PyCQA/pylint/issues/3299) ## Other Changes - Add method name to the error messages of `no-method-argument` and `no-self-argument`. Closes [#​7507](https://togithub.com/PyCQA/pylint/issues/7507) ### [`v2.15.3`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.3) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.2...v2.15.3) - Fixed a crash in the `unhashable-member` checker when using a `lambda` as a dict key. Closes [#​7453](https://togithub.com/PyCQA/pylint/issues/7453) - Fix a crash in the `modified-iterating-dict` checker involving instance attributes. Closes [#​7461](https://togithub.com/PyCQA/pylint/issues/7461) - `invalid-class-object` does not crash anymore when `__class__` is assigned alongside another variable. Closes [#​7467](https://togithub.com/PyCQA/pylint/issues/7467) - Fix false positive for `global-variable-not-assigned` when a global variable is re-assigned via an `ImportFrom` node. Closes [#​4809](https://togithub.com/PyCQA/pylint/issues/4809) - Fix false positive for `undefined-loop-variable` in `for-else` loops that use a function having a return type annotation of `NoReturn` or `Never`. Closes [#​7311](https://togithub.com/PyCQA/pylint/issues/7311) - `--help-msg` now accepts a comma-separated list of message IDs again. Closes [#​7471](https://togithub.com/PyCQA/pylint/issues/7471) ### [`v2.15.2`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.2) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.0...v2.15.2) - Fixed a case where custom plugins specified by command line could silently fail. Specifically, if a plugin relies on the `init-hook` option changing `sys.path` before it can be imported, this will now emit a `bad-plugin-value` message. Before this change, it would silently fail to register the plugin for use, but would load any configuration, which could have unintended effects. Fixes part of [#​7264](https://togithub.com/PyCQA/pylint/issues/7264). - Fix `used-before-assignment` for functions/classes defined in type checking guard. Closes [#​7368](https://togithub.com/PyCQA/pylint/issues/7368) - Update `modified_iterating` checker to fix a crash with `for` loops on empty list. Closes [#​7380](https://togithub.com/PyCQA/pylint/issues/7380) - The `docparams` extension now considers typing in Numpy style docstrings as "documentation" for the `missing-param-doc` message. Refs [#​7398](https://togithub.com/PyCQA/pylint/issues/7398) - Fix false positive for `unused-variable` and `unused-import` when a name is only used in a string literal type annotation. Closes [#​3299](https://togithub.com/PyCQA/pylint/issues/3299) - Fix false positive for `too-many-function-args` when a function call is assigned to a class attribute inside the class where the function is defined. Closes [#​6592](https://togithub.com/PyCQA/pylint/issues/6592) - Fix `used-before-assignment` for functions/classes defined in type checking guard. Closes [#​7368](https://togithub.com/PyCQA/pylint/issues/7368) - Fix ignored files being linted when passed on stdin. Closes [#​4354](https://togithub.com/PyCQA/pylint/issues/4354) - `missing-return-doc`, `missing-raises-doc` and `missing-yields-doc` now respect the `no-docstring-rgx` option. Closes [#​4743](https://togithub.com/PyCQA/pylint/issues/4743) - Don't crash on `OSError` in config file discovery. Closes [#​7169](https://togithub.com/PyCQA/pylint/issues/7169) - `disable-next` is now correctly scoped to only the succeeding line. Closes [#​7401](https://togithub.com/PyCQA/pylint/issues/7401) - Update `modified_iterating` checker to fix a crash with `for` loops on empty list. Closes [#​7380](https://togithub.com/PyCQA/pylint/issues/7380) ### [`v2.15.0`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.0) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.14.5...v2.15.0) In pylint 2.15.0, we added a new check `missing-timeout` to warn of default timeout values that could cause a program to be hanging indefinitely. We improved `pylint`'s handling of namespace packages. More packages should be linted without resorting to using the `--recursive=y` option. We still welcome any community effort to help review, integrate, and add good/bad examples to the doc for [https://github.com/PyCQA/pylint/issues/5953](https://togithub.com/PyCQA/pylint/issues/5953). This should be doable without any `pylint` or `astroid` knowledge, so this is the perfect entrypoint if you want to contribute to `pylint` or open source without any experience with our code! Internally, we changed the way we generate the release notes, thanks to DudeNr33. There will be no more conflict resolution to do in the changelog, and every contributor rejoice. Marc Byrne became a maintainer, welcome to the team ! ## New Checks - Added new checker `missing-timeout` to warn of default timeout values that could cause a program to be hanging indefinitely. Refs [#​6780](https://togithub.com/PyCQA/pylint/issues/6780) ## False Positives Fixed - Don't report `super-init-not-called` for abstract `__init__` methods. Closes [#​3975](https://togithub.com/PyCQA/pylint/issues/3975) - Don't report `unsupported-binary-operation` on Python <= 3.9 when using the `|` operator with types, if one has a metaclass that overloads `__or__` or `__ror__` as appropriate. Closes [#​4951](https://togithub.com/PyCQA/pylint/issues/4951) - Don't report `no-value-for-parameter` for dataclasses fields annotated with `KW_ONLY`. Closes [#​5767](https://togithub.com/PyCQA/pylint/issues/5767) - Fixed inference of `Enums` when they are imported under an alias. Closes [#​5776](https://togithub.com/PyCQA/pylint/issues/5776) - Prevent false positives when accessing `PurePath.parents` by index (not slice) on Python 3.10+. Closes [#​5832](https://togithub.com/PyCQA/pylint/issues/5832) - `unnecessary-list-index-lookup` is now more conservative to avoid potential false positives. Closes [#​6896](https://togithub.com/PyCQA/pylint/issues/6896) - Fix double emitting `trailing-whitespace` for multi-line docstrings. Closes [#​6936](https://togithub.com/PyCQA/pylint/issues/6936) - `import-error` now correctly checks for `contextlib.suppress` guards on import statements. Closes [#​7270](https://togithub.com/PyCQA/pylint/issues/7270) - Fix false positive for `no-self-argument`/`no-method-argument` when a staticmethod is applied to a function but uses a different name. Closes [#​7300](https://togithub.com/PyCQA/pylint/issues/7300) - Fix `undefined-loop-variable` with `break` and `continue` statements in `else` blocks. Refs [#​7311](https://togithub.com/PyCQA/pylint/issues/7311) ## False Negatives Fixed - Emit `used-before-assignment` when relying on a name that is reimported later in a function. Closes [#​4624](https://togithub.com/PyCQA/pylint/issues/4624) - Emit `used-before-assignment` for self-referencing named expressions (`:=`) lacking prior assignments. Closes [#​5653](https://togithub.com/PyCQA/pylint/issues/5653) - Emit `used-before-assignment` for self-referencing assignments under if conditions. Closes [#​6643](https://togithub.com/PyCQA/pylint/issues/6643) - Emit `modified-iterating-list` and analogous messages for dicts and sets when iterating literals, or when using the `del` keyword. Closes [#​6648](https://togithub.com/PyCQA/pylint/issues/6648) - Emit `used-before-assignment` when calling nested functions before assignment. Closes [#​6812](https://togithub.com/PyCQA/pylint/issues/6812) - Emit `nonlocal-without-binding` when a nonlocal name has been assigned at a later point in the same scope. Closes [#​6883](https://togithub.com/PyCQA/pylint/issues/6883) - Emit `using-constant-test` when testing the truth value of a variable or call result holding a generator. Closes [#​6909](https://togithub.com/PyCQA/pylint/issues/6909) - Rename `unhashable-dict-key` to `unhashable-member` and emit when creating sets and dicts, not just when accessing dicts. Closes [#​7034](https://togithub.com/PyCQA/pylint/issues/7034), Closes [#​7055](https://togithub.com/PyCQA/pylint/issues/7055) ## Other Bug Fixes - Fix a failure to lint packages with `__init__.py` contained in directories lacking `__init__.py`. Closes [#​1667](https://togithub.com/PyCQA/pylint/issues/1667) - Fixed a syntax-error crash that was not handled properly when the declared encoding of a file was `utf-9`. Closes [#​3860](https://togithub.com/PyCQA/pylint/issues/3860) - Fix a crash in the `not-callable` check when there is ambiguity whether an instance is being incorrectly provided to `__new__()`. Closes [#​7109](https://togithub.com/PyCQA/pylint/issues/7109) - Fix crash when regex option raises a `re.error` exception. Closes [#​7202](https://togithub.com/PyCQA/pylint/issues/7202) - Fix `undefined-loop-variable` from walrus in comprehension test. Closes [#​7222](https://togithub.com/PyCQA/pylint/issues/7222) - Check for `` before removing first item from `sys.path` in `modify_sys_path`. Closes [#​7231](https://togithub.com/PyCQA/pylint/issues/7231) - Fix sys.path pollution in parallel mode. Closes [#​7246](https://togithub.com/PyCQA/pylint/issues/7246) - Prevent `useless-parent-delegation` for delegating to a builtin written in C (e.g. `Exception.__init__`) with non-self arguments. Closes [#​7319](https://togithub.com/PyCQA/pylint/issues/7319) ## Other Changes - `bad-exception-context` has been renamed to `bad-exception-cause` as it is about the cause and not the context. Closes [#​3694](https://togithub.com/PyCQA/pylint/issues/3694) - The message for `literal-comparison` is now more explicit about the problem and the solution. Closes [#​5237](https://togithub.com/PyCQA/pylint/issues/5237) - `useless-super-delegation` has been renamed to `useless-parent-delegation` in order to be more generic. Closes [#​6953](https://togithub.com/PyCQA/pylint/issues/6953) - Pylint now uses `towncrier` for changelog generation. Refs [#​6974](https://togithub.com/PyCQA/pylint/issues/6974) - Update `astroid` to 2.12. Refs [#​7153](https://togithub.com/PyCQA/pylint/issues/7153) - Fix crash when a type-annotated `__slots__` with no value is declared. Closes [#​7280](https://togithub.com/PyCQA/pylint/issues/7280) ## Internal Changes - Fixed an issue where it was impossible to update functional tests output when the existing output was impossible to parse. Instead of raising an error we raise a warning message and let the functional test fail with a default value. Refs [#​6891](https://togithub.com/PyCQA/pylint/issues/6891) - `pylint.testutils.primer` is now a private API. Refs [#​6905](https://togithub.com/PyCQA/pylint/issues/6905) - We changed the way we handle the changelog internally by using towncrier. If you're a contributor you won't have to fix merge conflicts in the changelog anymore. Closes [#​6974](https://togithub.com/PyCQA/pylint/issues/6974) - Pylint is now using Scorecards to implement security recommendations from the `OpenSSF `\_. This is done in order to secure our supply chains using a combination of automated tooling and best practices, most of which were already implemented before. Refs [#​7267](https://togithub.com/PyCQA/pylint/issues/7267)

Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" in timezone Asia/Singapore, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.