pylint
pylint copied to clipboard
Emit `used-before-assignment` for variables only defined under always false tests
Type of Changes
| Type | |
|---|---|
| ✓ | :sparkles: New feature |
Description
Closes #4913
@jacobtylerwalls This seems like it could benefit from https://github.com/PyCQA/astroid/pull/1189. Perhaps we should try and get that landed first?
I agree that's a good use of effort to get that merged. Not sure I immediately see the utility here, but it's certainly possible after looking more closely! :D
I agree that's a good use of effort to get that merged. Not sure I immediately see the utility here, but it's certainly possible after looking more closely! :D
Well, if you don't see the usability than that's a clear point of review. The system introduced there should be "easily" extendable to also include is False, is sys.version etc. checks.
I am eagerly waiting for the PR to get merged/reviewed to start exploring some of the other constraints we could start checking for.
I guess it just comes down to how much to use inference in the VariablesChecker. This draft only infers the variables in the if tests, not the variables in the expressions under the tests, which is what I think that astroid PR would be useful for, no? (The tests themselves are executed unconditionally.) It would be a pretty large rewrite of used-before-assignment to simply infer all the variable usages and then if we get an Uninferable assume used-before-assignment. So that was my thinking -- but like I said, maybe my imagination will spark when looking more closely :D
Pull Request Test Coverage Report for Build 3508970379
- 51 of 53 (96.23%) changed or added relevant lines in 1 file are covered.
- 1 unchanged line in 1 file lost coverage.
- Overall coverage decreased (-0.003%) to 95.412%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| pylint/checkers/variables.py | 51 | 53 | 96.23% |
| <!-- | Total: | 51 | 53 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| pylint/checkers/variables.py | 1 | 97.31% |
| <!-- | Total: | 1 |
| Totals | |
|---|---|
| Change from base Build 3505356469: | -0.003% |
| Covered Lines: | 17449 |
| Relevant Lines: | 18288 |
💛 - Coveralls
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'alignment' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L209
- used-before-assignment: Using variable 'string' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L217
- used-before-assignment: Using variable 'string' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L229
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are no longer emitted:
- protected-access: Access to a protected member __cache of a client class https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L36
- invalid-name: Class name "cachedproperty" doesn't conform to '[A-Z_][a-zA-Z0-9]+$' pattern https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L46
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L80
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L110
- protected-access: Access to a protected member _proxied of a client class https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L111
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L122
- unused-argument: Unused argument 'instance' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L122
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L136
- unused-argument: Unused argument 'instance' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L136
- invalid-name: Function name "deprecate_default_argument_values" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L157
- too-many-boolean-expressions: Too many boolean expressions in if statement (7/5) https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L191
- invalid-name: Function name "deprecate_default_argument_values" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L256
- unused-argument: Unused argument 'astroid_version' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L257
- unused-argument: Unused argument 'arguments' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L257
- unused-argument: Unused argument 'astroid_version' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L268
- unused-argument: Unused argument 'arguments' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L268
- suppressed-message: Suppressed 'not-a-mapping' (from line 143) https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L144
- invalid-name: Type variable name "T_Doc" doesn't conform to predefined naming style https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L43
- too-many-try-statements: try clause contains 8 statements, expected at most 1 https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L80
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L99
- invalid-name: Variable name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L143
- invalid-name: Variable name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L188
- compare-to-zero: Avoid comparisons to zero https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L189
- compare-to-zero: Avoid comparisons to zero https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L191
- compare-to-zero: Avoid comparisons to zero https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L197
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L585
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L704
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L734
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L759
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L764
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L767
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L779
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L895
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L960
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1051
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1057
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1173
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1243
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1266
- redefined-loop-name: Redefining 'name' from loop (line 1398) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1399
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1385
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1403
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1415
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1435
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1566
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1578
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1593
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1602
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1602
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1613
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1624
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1633
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1782
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1865
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1898
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1915
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1930
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1944
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1955
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1968
- no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1968
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1980
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1995
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2014
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2034
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2049
- missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2065
- too-many-public-methods: Too many public methods (80/25) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L56
- suppressed-message: Suppressed 'unsubscriptable-object' (from line 132) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L132
- suppressed-message: Suppressed 'unsubscriptable-object' (from line 179) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L179
- suppressed-message: Suppressed 'unsubscriptable-object' (from line 1153) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1153
- suppressed-message: Suppressed 'unsubscriptable-object' (from line 1874) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1874
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L150
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L208
- invalid-name: Function name "looks_like_dataclass_field_call" doesn't conform to '[a-z][a-z0-9_]{2,30}$' pattern https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L328
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/PyCQA/astroid/astroid/decorators.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L1
- wrong-import-position: Import "from future import annotations" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L9
- wrong-import-position: Import "from astroid import nodes" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L11
- wrong-import-order: standard import "from future import annotations" should be placed before "import wrapt" https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L9
- ungrouped-imports: Imports from package future are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L9
- ungrouped-imports: Imports from package astroid are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L11
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/PyCQA/astroid/astroid/rebuilder.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1
- wrong-import-position: Import "from future import annotations" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L10
- wrong-import-position: Import "import collections" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L12
- wrong-import-position: Import "import os" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L13
- wrong-import-position: Import "import types" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L14
- wrong-import-position: Import "import zipimport" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L15
- wrong-import-position: Import "from importlib.util import find_spec, module_from_spec" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L16
- wrong-import-position: Import "from typing import TYPE_CHECKING, ClassVar" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L17
- wrong-import-position: Import "from astroid.const import BRAIN_MODULES_DIRECTORY" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L19
- wrong-import-position: Import "from astroid.exceptions import AstroidBuildingError, AstroidImportError" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L20
- wrong-import-position: Import "from astroid.interpreter._import import spec, util" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L21
- wrong-import-position: Import "from astroid.modutils import NoSourceFile, cache_normalize_path, file_info_from_modpath, get_source_file, is_module_name_part_of_extension_package_whitelist, is_python_source, is_standard_module, load_module_from_name, modpath_from_file" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L22
- wrong-import-position: Import "from astroid.transforms import TransformVisitor" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L33
- wrong-import-position: Import "from astroid.typing import AstroidManagerBrain" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L34
- wrong-import-order: standard import "from future import annotations" should be placed before "from astroid import nodes" https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L10
- wrong-import-order: standard import "import collections" should be placed before "from astroid import nodes" https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L12
- wrong-import-order: standard import "import os" should be placed before "from astroid import nodes" https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L13
- wrong-import-order: standard import "import types" should be placed before "from astroid import nodes" https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L14
- wrong-import-order: standard import "import zipimport" should be placed before "from astroid import nodes" https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L15
- wrong-import-order: standard import "from importlib.util import find_spec, module_from_spec" should be placed before "from astroid import nodes" https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L16
- wrong-import-order: standard import "from typing import TYPE_CHECKING, ClassVar" should be placed before "from astroid import nodes" https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L17
- ungrouped-imports: Imports from package future are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L10
- ungrouped-imports: Imports from package typing are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L17
- ungrouped-imports: Imports from package astroid are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L19
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/PyCQA/astroid/astroid/brain/brain_dataclasses.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L1
- wrong-import-position: Import "from astroid.brain.helpers import register_module_extender" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_unittest.py#L6
- wrong-import-position: Import "from astroid.builder import parse" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_unittest.py#L7
- wrong-import-position: Import "from astroid.const import PY38_PLUS" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_unittest.py#L8
- wrong-import-position: Import "from astroid.manager import AstroidManager" should be placed at the top of the module https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_unittest.py#L9
- ungrouped-imports: Imports from package astroid are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_unittest.py#L6
Effect on black: The following messages are no longer emitted:
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L141
- invalid-name: Class constant name "string_processing" doesn't conform to UPPER_CASE naming style https://github.com/psf/black.git/blob/main/src/black/mode.py#L148
- invalid-name: Class constant name "remove_redundant_parens" doesn't conform to UPPER_CASE naming style https://github.com/psf/black.git/blob/main/src/black/mode.py#L149
- invalid-name: Class constant name "one_element_subscript" doesn't conform to UPPER_CASE naming style https://github.com/psf/black.git/blob/main/src/black/mode.py#L150
- invalid-name: Class constant name "annotation_parens" doesn't conform to UPPER_CASE naming style https://github.com/psf/black.git/blob/main/src/black/mode.py#L151
- invalid-name: Class constant name "long_docstring_quotes_on_newline" doesn't conform to UPPER_CASE naming style https://github.com/psf/black.git/blob/main/src/black/mode.py#L152
- missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L160
- docstring-first-line-empty: First line empty in method docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L179
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L190
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/mode.py#L191
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/mode.py#L64
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/mode.py#L64
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/mode.py#L141
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/mode.py#L161
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/mode.py#L168
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L63
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/brackets.py#L92
- compare-to-zero: Avoid comparisons to zero https://github.com/psf/black.git/blob/main/src/black/brackets.py#L101
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L194
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L199
- unused-argument: Unused argument 'previous' https://github.com/psf/black.git/blob/main/src/black/brackets.py#L199
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L213
- too-many-return-statements: Too many return statements (14/11) https://github.com/psf/black.git/blob/main/src/black/brackets.py#L213
- invalid-name: Variable name "bt" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/brackets.py#L323
- invalid-name: Variable name "c" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/brackets.py#L324
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L61
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L61
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L62
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L64
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L65
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L66
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/brackets.py#L122
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L52
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/psf/black.git/blob/main/src/black/parsing.py#L94
- invalid-name: Variable name "pe" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/parsing.py#L98
- invalid-name: Variable name "te" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/parsing.py#L109
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L135
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L151
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L153
- no-else-return: Unnecessary "elif" after "return", remove the leading "el" from "elif" https://github.com/psf/black.git/blob/main/src/black/parsing.py#L156
- no-else-return: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it https://github.com/psf/black.git/blob/main/src/black/parsing.py#L159
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L166
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L166
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/parsing.py#L174
- invalid-name: Constant name "ast3_AST" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern* https://github.com/psf/black.git/blob/main/src/black/parsing.py#L181
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L184
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L194
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L261
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L261
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L52
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L52
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L85
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L152
- consider-using-alias: 'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L181
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L187
- consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L194
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L201
- consider-using-alias: 'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/parsing.py#L201
- invalid-name: Variable name "pc" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/comments.py#L66
- redefined-loop-name: Redefining 'line' from loop (line 84) https://github.com/psf/black.git/blob/main/src/black/comments.py#L86
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/comments.py#L97
- invalid-name: Variable name "NON_BREAKING_SPACE" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/comments.py#L125
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/black/comments.py#L140 - consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/comments.py#L186
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/comments.py#L214
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/black/comments.py#L223 - while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/black/comments.py#L234 - docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/comments.py#L277
- consider-using-any-or-all:
forloop could beany(comment.value.startswith(('# type:', '# noqa', '# pylint:')) for comment in comment_list)https://github.com/psf/black.git/blob/main/src/black/comments.py#L284 - consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/comments.py#L47
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/comments.py#L75
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/comments.py#L77
- consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/comments.py#L208
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/comments.py#L277
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/nodes.py#L169
- invalid-name: Variable name "NO" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L196
- invalid-name: Variable name "SPACE" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L197
- invalid-name: Variable name "DOUBLESPACE" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L198
- invalid-name: Variable name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L199
- invalid-name: Variable name "p" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L200
- invalid-name: Variable name "v" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L201
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L274
- no-else-return: Unnecessary "elif" after "return", remove the leading "el" from "elif" https://github.com/psf/black.git/blob/main/src/black/nodes.py#L223
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L247
- no-else-return: Unnecessary "elif" after "return", remove the leading "el" from "elif" https://github.com/psf/black.git/blob/main/src/black/nodes.py#L233
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L259
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L263
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L282
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L287
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L304
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L296
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L311
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L323
- consider-using-in: Consider merging these comparisons with "in" to 't in (token.LPAR, token.RPAR)' https://github.com/psf/black.git/blob/main/src/black/nodes.py#L313
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L320
- consider-using-in: Consider merging these comparisons with "in" to 't in (token.DOT, token.LSQB)' https://github.com/psf/black.git/blob/main/src/black/nodes.py#L317
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L336
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L333
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L348
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L355
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L367
- no-else-return: Unnecessary "elif" after "return", remove the leading "el" from "elif" https://github.com/psf/black.git/blob/main/src/black/nodes.py#L357
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L372
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L377
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L398
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L395
- no-else-return: Unnecessary "elif" after "return", remove the leading "el" from "elif" https://github.com/psf/black.git/blob/main/src/black/nodes.py#L386
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L410
- confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/black/nodes.py#L403
- too-many-return-statements: Too many return statements (48/11) https://github.com/psf/black.git/blob/main/src/black/nodes.py#L190
- too-many-branches: Too many branches (73/27) https://github.com/psf/black.git/blob/main/src/black/nodes.py#L190
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L420
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L420
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/black/nodes.py#L422 - consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L438
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L438
- docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L454
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L454
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L454
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L467
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L469
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/black/nodes.py#L470 - docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L475
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/black/nodes.py#L499 - consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L517
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L535
- bad-builtin: Used builtin function 'map'. Using a list comprehension can be clearer. https://github.com/psf/black.git/blob/main/src/black/nodes.py#L660
- invalid-name: Variable name "p" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L701
- invalid-name: Variable name "p" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L708
- compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L758
- compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L761
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L765
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L769
- compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L770
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L773
- compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L774
- invalid-name: Variable name "p" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L779
- invalid-name: Variable name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L780
- invalid-name: Variable name "v" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L781
- invalid-name: Variable name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L794
- invalid-name: Variable name "v" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L795
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L817
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L843
- invalid-name: Argument name "nl" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L843
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L847
- invalid-name: Argument name "nl" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L847
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L851
- invalid-name: Argument name "nl" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L851
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L855
- invalid-name: Argument name "nl" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/nodes.py#L855
- consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L159
- consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L183
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L438
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L579
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L580
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/nodes.py#L690
- docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L32
- invalid-name: Function name "lines_with_leading_tabs_expanded" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/strings.py#L41
- invalid-name: Argument name "s" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/strings.py#L41
- docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L41
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L63
- docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L87
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/black/strings.py#L99 - docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L106
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/strings.py#L124
- use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/black/strings.py#L132
- invalid-name: Argument name "s" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/strings.py#L141
- misplaced-comparison-constant: Comparison should be new_prefix[0].lower() != 'r' https://github.com/psf/black.git/blob/main/src/black/strings.py#L154
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L163
- invalid-name: Argument name "s" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/strings.py#L167
- no-else-return: Unnecessary "elif" after "return", remove the leading "el" from "elif" https://github.com/psf/black.git/blob/main/src/black/strings.py#L174
- invalid-name: Variable name "m" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/black/strings.py#L222
- consider-using-alias: 'typing.Pattern' will be deprecated with PY39, consider using 're.Pattern' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/strings.py#L23
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/strings.py#L41
- consider-using-alias: 'typing.Pattern' will be deprecated with PY39, consider using 're.Pattern' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/black/strings.py#L163
- invalid-name: Constant name "endprogs" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern* https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L159
- invalid-name: Constant name "triple_quoted" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern* https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L169
- invalid-name: Constant name "single_quoted" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern* https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L174
- invalid-name: Constant name "tabsize" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern* https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L180
- missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L183
- missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L187
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L191
- redefined-builtin: Redefining built-in 'type' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L191
- redefined-outer-name: Redefining name 'token' from outer scope (line 59) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L191
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L195
- unused-argument: Unused argument 'line' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L191
- docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L203
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L223
- missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L232
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L243
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L250
- redefined-outer-name: Redefining name 'token' from outer scope (line 59) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L255
- invalid-name: Variable name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L251
- unused-variable: Unused variable 'line' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L255
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L266
- redefined-outer-name: Redefining name 'token' from outer scope (line 59) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L266
- no-else-continue: Unnecessary "elif" after "continue", remove the leading "el" from "elif" https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L281
- use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L305
- docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L312
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L340
- raise-missing-from: Consider explicitly re-raising using 'except LookupError as exc' and 'raise SyntaxError('unknown encoding: ' + encoding) from exc' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L353
- invalid-name: Variable name "ut" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L405
- docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
- too-many-locals: Too many local variables (34/25) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
- redefined-builtin: Redefining built-in 'max' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L451
- redefined-outer-name: Redefining name 'token' from outer scope (line 59) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L557
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L410
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L430
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L437
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445 - used-before-assignment: Using variable 'strstart' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L456
- used-before-assignment: Using variable 'endprog' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L457
- compare-to-zero: Avoid comparisons to zero https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L485
- while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L489 - while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L527 - while-used:
Used
whileloop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L552 - confusing-consecutive-elif: Consecutive elif with differing indentation level, consider creating a function to separate the inner elif https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L615
- too-many-nested-blocks: Too many nested blocks (6/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
- no-else-break: Unnecessary "else" after "break", remove the "else" and de-indent the code inside it https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L600
- too-many-nested-blocks: Too many nested blocks (6/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
- use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L616
- too-many-nested-blocks: Too many nested blocks (6/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
- use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L632
- too-many-nested-blocks: Too many nested blocks (7/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
- too-many-branches: Too many branches (59/27) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
- too-many-statements: Too many statements (177/100) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
- unused-variable: Unused variable 'indent' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L677
- reimported: Reimport 'sys' (imported line 30) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L683
- consider-using-with: Consider using 'with' for resource-allocating operations https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L686
- unspecified-encoding: Using open without explicitly specifying an encoding https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L686
- ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L683
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L234
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L250
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L266
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L266
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L312
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L312
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L387
- consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L411
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L442
- consider-using-alias: 'typing.Pattern' will be deprecated with PY39, consider using 're.Pattern' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L443
- unused-wildcard-import: Unused import(s) LPAR, RPAR, LSQB, RSQB, COLON, COMMA, SEMI, PLUS, MINUS, STAR, SLASH, VBAR, AMPER, LESS, GREATER, EQUAL, DOT, PERCENT, BACKQUOTE, LBRACE, RBRACE, EQEQUAL, NOTEQUAL, LESSEQUAL, GREATEREQUAL, TILDE, CIRCUMFLEX, LEFTSHIFT, RIGHTSHIFT, DOUBLESTAR, PLUSEQUAL, MINEQUAL, STAREQUAL, SLASHEQUAL, PERCENTEQUAL, AMPEREQUAL, VBAREQUAL, CIRCUMFLEXEQUAL, LEFTSHIFTEQUAL, RIGHTSHIFTEQUAL, DOUBLESTAREQUAL, DOUBLESLASH, DOUBLESLASHEQUAL, AT, ATEQUAL, RARROW, COLONEQUAL, N_TOKENS, NT_OFFSET, ISTERMINAL, ISNONTERMINAL, ISEOF and Dict from wildcard import of blib2to3.pgen2.token https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L49
- wrong-import-order: standard import "from typing import cast, Any, Optional, Text, Union, Tuple, Dict, List, Iterator, Callable, Set, TYPE_CHECKING" should be placed before "from . import grammar, token, tokenize" https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L17
- wrong-import-order: third party import "from blib2to3.pgen2.grammar import Grammar" should be placed before "from . import grammar, token, tokenize" https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L31
- wrong-import-order: third party import "from blib2to3.pytree import convert, NL, Context, RawNode, Leaf, Node" should be placed before "from . import grammar, token, tokenize" https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L32
- invalid-name: Constant name "tok_name" doesn't conform to '(([A-Z_][A-Z0-9_])|(.*))$' pattern* https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L79
- unidiomatic-typecheck: Use isinstance() rather than type() for a typecheck. https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L81
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L85
- invalid-name: Function name "ISTERMINAL" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L85
- invalid-name: Argument name "x" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L85
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L89
- invalid-name: Function name "ISNONTERMINAL" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L89
- invalid-name: Argument name "x" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L89
- missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L93
- invalid-name: Function name "ISEOF" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L93
- invalid-name: Argument name "x" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L93
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L79
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/black/mode.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/black/mode.py#L1
- wrong-import-position: Import "from functools import lru_cache" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L3
- wrong-import-position: Import "import dataclasses" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L4
- wrong-import-position: Import "import ast" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L5
- wrong-import-position: Import "from typing import Dict, List, Tuple, Optional" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L6
- wrong-import-position: Import "import secrets" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L8
- wrong-import-position: Import "import sys" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L9
- wrong-import-position: Import "import collections" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L10
- wrong-import-order: standard import "from functools import lru_cache" should be placed before "from black.const import DEFAULT_LINE_LENGTH" https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L3
- wrong-import-order: standard import "import dataclasses" should be placed before "from black.const import DEFAULT_LINE_LENGTH" https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L4
- wrong-import-order: standard import "import ast" should be placed before "from black.const import DEFAULT_LINE_LENGTH" https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L5
- wrong-import-order: standard import "from typing import Dict, List, Tuple, Optional" should be placed before "from black.const import DEFAULT_LINE_LENGTH" https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L6
- wrong-import-order: standard import "import secrets" should be placed before "from black.const import DEFAULT_LINE_LENGTH" https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L8
- wrong-import-order: standard import "import sys" should be placed before "from black.const import DEFAULT_LINE_LENGTH" https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L9
- wrong-import-order: standard import "import collections" should be placed before "from black.const import DEFAULT_LINE_LENGTH" https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L10
- ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L6
- ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L9
- ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L17
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/black/brackets.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/black/brackets.py#L1
- wrong-import-position: Import "import ast" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/parsing.py#L4
- wrong-import-position: Import "import platform" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/parsing.py#L5
- wrong-import-position: Import "import sys" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/parsing.py#L6
- wrong-import-position: Import "from typing import Any, Iterable, Iterator, List, Set, Tuple, Type, Union" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/parsing.py#L7
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/black/parsing.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/black/parsing.py#L1
- wrong-import-position: Import "from blib2to3.pytree import Leaf" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/numerics.py#L4
- wrong-import-order: standard import "import ast" should be placed before "from blib2to3.pytree import Leaf, Node" https://github.com/psf/black.git/blob/main/src/black/parsing.py#L4
- wrong-import-order: standard import "import platform" should be placed before "from blib2to3.pytree import Leaf, Node" https://github.com/psf/black.git/blob/main/src/black/parsing.py#L5
- wrong-import-order: standard import "import sys" should be placed before "from blib2to3.pytree import Leaf, Node" https://github.com/psf/black.git/blob/main/src/black/parsing.py#L6
- wrong-import-order: standard import "from typing import Any, Iterable, Iterator, List, Set, Tuple, Type, Union" should be placed before "from blib2to3.pytree import Leaf, Node" https://github.com/psf/black.git/blob/main/src/black/parsing.py#L7
- ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L6
- ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L7
- ungrouped-imports: Imports from package blib2to3 are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L15
- ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L22
- ungrouped-imports: Imports from package blib2to3 are not grouped https://github.com/psf/black.git/blob/main/src/black/numerics.py#L4
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/black/comments.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/black/comments.py#L1
- wrong-import-position: Import "import sys" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/nodes.py#L5
- wrong-import-position: Import "from typing import Generic, Iterator, List, Optional, Set, Tuple, TypeVar, Union" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/nodes.py#L6
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/black/nodes.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/black/nodes.py#L1
- wrong-import-position: Import "from dataclasses import dataclass" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/report.py#L4
- wrong-import-position: Import "from enum import Enum" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/report.py#L5
- wrong-import-position: Import "from pathlib import Path" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/report.py#L6
- wrong-import-position: Import "from click import style" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/report.py#L8
- wrong-import-position: Import "from black.output import out, err" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/black/report.py#L10
- wrong-import-order: standard import "import sys" should be placed before "from blib2to3.pytree import Node, Leaf" https://github.com/psf/black.git/blob/main/src/black/nodes.py#L5
- wrong-import-order: standard import "from typing import Generic, Iterator, List, Optional, Set, Tuple, TypeVar, Union" should be placed before "from blib2to3.pytree import Node, Leaf" https://github.com/psf/black.git/blob/main/src/black/nodes.py#L6
- wrong-import-order: standard import "from dataclasses import dataclass" should be placed before "from blib2to3.pytree import Node, Leaf" https://github.com/psf/black.git/blob/main/src/black/report.py#L4
- wrong-import-order: standard import "from enum import Enum" should be placed before "from blib2to3.pytree import Node, Leaf" https://github.com/psf/black.git/blob/main/src/black/report.py#L5
- wrong-import-order: standard import "from pathlib import Path" should be placed before "from blib2to3.pytree import Node, Leaf" https://github.com/psf/black.git/blob/main/src/black/report.py#L6
- ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L5
- ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L6
- ungrouped-imports: Imports from package dataclasses are not grouped https://github.com/psf/black.git/blob/main/src/black/report.py#L4
- ungrouped-imports: Imports from package blib2to3 are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L29
- ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L33
- ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/report.py#L10
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/black/strings.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/black/strings.py#L1
- wrong-import-position: Import "import asyncio" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L1
- wrong-import-position: Import "import logging" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L2
- wrong-import-position: Import "from concurrent.futures import Executor, ProcessPoolExecutor" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L3
- wrong-import-position: Import "from datetime import datetime" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L4
- wrong-import-position: Import "from functools import partial" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L5
- wrong-import-position: Import "from multiprocessing import freeze_support" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L6
- wrong-import-position: Import "from typing import Set, Tuple" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L7
- wrong-import-position: Import "import black" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L19
- wrong-import-position: Import "from black.concurrency import maybe_install_uvloop" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L20
- wrong-import-position: Import "import click" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L21
- wrong-import-position: Import "from _black_version import version as version" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blackd/init.py#L23
- ungrouped-imports: Imports from package functools are not grouped https://github.com/psf/black.git/blob/main/src/blackd/init.py#L5
- ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/blackd/init.py#L7
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/blib2to3/pgen2/tokenize.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L1
- wrong-import-position: Import "import copy" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L12
- wrong-import-position: Import "from contextlib import contextmanager" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L13
- wrong-import-position: Import "from . import grammar, token, tokenize" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L16
- wrong-import-position: Import "from typing import cast, Any, Optional, Text, Union, Tuple, Dict, List, Iterator, Callable, Set, TYPE_CHECKING" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L17
- wrong-import-position: Import "from blib2to3.pgen2.grammar import Grammar" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L31
- wrong-import-position: Import "from blib2to3.pytree import convert, NL, Context, RawNode, Leaf, Node" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L32
- wrong-import-order: *standard import "import copy" should be placed before "from blib2to3.pgen2.token import " https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L12
- wrong-import-order: *standard import "from contextlib import contextmanager" should be placed before "from blib2to3.pgen2.token import " https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L13
- wrong-import-order: *standard import "from typing import cast, Any, Optional, Text, Union, Tuple, Dict, List, Iterator, Callable, Set, TYPE_CHECKING" should be placed before "from blib2to3.pgen2.token import " https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L17
- wrong-import-order: third party import "from blib2to3.pgen2.grammar import Grammar" should be placed before "from . import token" https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L31
- wrong-import-order: third party import "from blib2to3.pytree import convert, NL, Context, RawNode, Leaf, Node" should be placed before "from . import token" https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L32
- ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L17
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/psf/black/src/blib2to3/pgen2/token.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L1
- wrong-import-position: Import "import io" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L19
- wrong-import-position: Import "import os" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L20
- wrong-import-position: Import "import logging" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L21
- wrong-import-position: Import "import pkgutil" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L22
- wrong-import-position: Import "import sys" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L23
- wrong-import-position: Import "from typing import Any, cast, IO, Iterable, List, Optional, Text, Iterator, Tuple, TypeVar, Generic, Union" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L24
- wrong-import-position: Import "from contextlib import contextmanager" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L38
- wrong-import-position: Import "from dataclasses import dataclass, field" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L39
- wrong-import-position: Import "from . import grammar, parse, token, tokenize, pgen" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L42
- wrong-import-position: Import "from logging import Logger" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L43
- wrong-import-position: Import "from blib2to3.pytree import NL" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L44
- wrong-import-position: Import "from blib2to3.pgen2.grammar import Grammar" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L45
- wrong-import-position: Import "from blib2to3.pgen2.tokenize import GoodTokenInfo" should be placed at the top of the module https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L46
- ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L23
- ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L24
Effect on pytest: The following messages are no longer emitted:
- unsubscriptable-object: Value 'cls._wrapped_pdb_cls' is unsubscriptable https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L121
- unsubscriptable-object: Value 'cls._wrapped_pdb_cls' is unsubscriptable https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L122
- too-many-try-statements: try clause contains 6 statements, expected at most 1 https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L127
- import-outside-toplevel: Import outside toplevel (pdb) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L142
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L151
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L151
- import-private-name: Imported private module (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L152
- import-outside-toplevel: Import outside toplevel (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L152
- missing-class-docstring: Missing class docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L156
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L160
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L166
- compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L168
- protected-access: Access to a protected member _recursive_debug of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L168
- protected-access: Access to a protected member _config of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L169
- invalid-name: Variable name "tw" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L170
- protected-access: Access to a protected member _config of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L170
- protected-access: Access to a protected member _is_capturing of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L174
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L181
- protected-access: Access to a protected member _pluginmanager of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L188
- protected-access: Access to a protected member _pluginmanager of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L189
- protected-access: Access to a protected member _config of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L189
- compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L204
- protected-access: Access to a protected member _recursive_debug of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L204
- invalid-name: Argument name "f" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L212
- invalid-name: Argument name "tb" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L212
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L226
- invalid-name: Argument name "f" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L226
- invalid-name: Argument name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L226
- while-used:
Used
whileloop https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L231 - import-private-name: Imported private module (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L240
- import-outside-toplevel: Import outside toplevel (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L240
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L243
- used-before-assignment: Using variable 'CaptureManager' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L243
- invalid-name: Variable name "tw" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L250
- compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L253
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L265
- unused-argument: Unused argument 'args' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L238
- protected-access: Access to a protected member _getframe of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L280
- too-few-public-methods: Too few public methods (1/2) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L94
- missing-class-docstring: Missing class docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L285
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L286
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L286
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L298
- invalid-name: Variable name "tb" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L299
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L298
- missing-class-docstring: Missing class docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L303
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L305
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L305
- too-few-public-methods: Too few public methods (1/2) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L303
- invalid-name: Function name "wrap_pytest_function_for_tracing" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L310
- protected-access: Access to a protected member _init_pdb of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L315
- invalid-name: Function name "maybe_wrap_pytest_function_for_tracing" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L329
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L336
- invalid-name: Variable name "tw" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L342
- protected-access: Access to a protected member _tw of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L342
- redefined-loop-name: Redefining 'content' from loop (line 347) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L355
- invalid-name: Variable name "tb" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L361
- protected-access: Access to a protected member _pdbshown of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L362
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L367
- import-outside-toplevel: Import outside toplevel (doctest.UnexpectedException) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L368
- no-else-return: Unnecessary "elif" after "return", remove the leading "el" from "elif" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L370
- protected-access: Access to a protected member _excinfo of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L379
- protected-access: Access to a protected member _excinfo of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L380
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L383
- invalid-name: Argument name "t" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L383
- invalid-name: Variable name "p" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L384
- protected-access: Access to a protected member _init_pdb of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L384
- consider-using-alias: 'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L100
- consider-using-alias: 'typing.Generator' will be deprecated with PY39, consider using 'collections.abc.Generator' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L305
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L287
- invalid-name: Argument name "fp" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L288
- invalid-name: Argument name "co" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L288
- import-error: Unable to import 'atomicwrites' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L306
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L308
- invalid-name: Argument name "co" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L310
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L314
- invalid-name: Variable name "fp" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L315
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L317
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L327
- invalid-name: Argument name "co" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L329
- invalid-name: Variable name "fp" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L335
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L336
- too-many-try-statements: try clause contains 2 statements, expected at most 1 https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L340
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L343
- consider-using-with: Consider using 'with' for resource-allocating operations https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L335
- invalid-name: Argument name "fn" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L354
- invalid-name: Variable name "co" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L361
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L367
- invalid-name: Variable name "fp" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L373
- too-many-try-statements: try clause contains 4 statements, expected at most 1 https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L377
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L382
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L387
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L390
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L393
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L397
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L401
- broad-except: Catching too general exception Exception https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L405
- invalid-name: Variable name "co" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L404
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L405
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L409
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L417
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L418
- protected-access: Access to a protected member _config of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L434
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L438
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L438
- invalid-name: Variable name "r1" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L464
- invalid-name: Variable name "r2" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L464
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L470
- broad-except: Catching too general exception Exception https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L476
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L480
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L485
- broad-except: Catching too general exception Exception https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L494
- protected-access: Access to a protected member _reprcompare of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L498
- protected-access: Access to a protected member _reprcompare of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
- undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
- undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
- undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
- undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
- undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
- undefined-loop-variable: Using possibly undefined loop variable 'expl' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L502
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L505
- protected-access: Access to a protected member _assertion_pass of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L506
- protected-access: Access to a protected member _assertion_pass of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L507
- simplifiable-if-expression: The if expression can be replaced with 'bool(test)' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L513
- protected-access: Access to a protected member _assertion_pass of a client class https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L513
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L559
- invalid-name: Variable name "tp" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L572
- compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L586
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L661
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L661
- compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L700
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L710
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L710
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L712
- undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L712
- consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L714
- while-used:
Used
whileloop https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L736 - too-many-nested-blocks: Too many nested blocks (6/5) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L736
- unused-variable: Unused variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L741
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L759
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L779
- no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L785
- invalid-name: Method name "visit_Assert" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L841
- too-many-locals: Too many local variables (30/25) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L841
- import-outside-toplevel: Import outside toplevel (_pytest.warning_types.PytestAssertRewriteWarning) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L850
- import-outside-toplevel: Import outside toplevel (warnings) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L851
- redefined-variable-type: Redefinition of assertmsg type from ast.Str to _ast.Call https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L933
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L958
- invalid-name: Method name "visit_Name" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L958
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L968
- invalid-name: Method name "visit_BoolOp" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L968
- invalid-name: Variable name "v" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L978
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1003
- invalid-name: Method name "visit_UnaryOp" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1003
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1009
- invalid-name: Method name "visit_BinOp" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1009
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1017
- invalid-name: Method name "visit_Call" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1017
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1034
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1041
- invalid-name: Method name "visit_Starred" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1041
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1047
- invalid-name: Method name "visit_Attribute" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1047
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1057
- invalid-name: Method name "visit_Compare" doesn't conform to '[a-z_][a-z0-9_]{2,}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1057
- invalid-name: Variable name "it" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1065
- invalid-name: Variable name "op" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1069
- attribute-defined-outside-init: Attribute 'explanation_specifiers' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L812
- attribute-defined-outside-init: Attribute 'explanation_specifiers' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L825
- attribute-defined-outside-init: Attribute 'statements' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L864
- attribute-defined-outside-init: Attribute 'statements' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L996
- attribute-defined-outside-init: Attribute 'statements' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L997
- attribute-defined-outside-init: Attribute 'variables' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L865
- attribute-defined-outside-init: Attribute 'variable_counter' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L866
- attribute-defined-outside-init: Attribute 'format_variables' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L869
- attribute-defined-outside-init: Attribute 'stack' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L871
- attribute-defined-outside-init: Attribute 'expl_stmts' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L872
- attribute-defined-outside-init: Attribute 'expl_stmts' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L983
- attribute-defined-outside-init: Attribute 'expl_stmts' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L998
- invalid-name: Variable name "e" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1110
- no-else-return: Unnecessary "else" after "return", remove the "else" and de-indent the code inside it https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1120
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L354
- consider-using-alias: 'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L366
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L480
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L486
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L487
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L488
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L489
- consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L545
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L553
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L555
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L558
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L560
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L735
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L740
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L812
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L835
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L841
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L864
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L865
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L869
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L871
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L871
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L872
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L958
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L968
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L980
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L994
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1003
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1009
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1017
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1041
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1047
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1057
- unused-import: Unused format_explanation imported from _pytest.assertion.util as _format_explanation https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L35
- unused-variable: Unused variable 'tracebackhide' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1692
- wrong-import-order: third party import "from _pytest._code import ExceptionInfo" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L47
- wrong-import-order: third party import "from _pytest._code import filter_traceback" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L48
- wrong-import-order: third party import "from _pytest._io import TerminalWriter" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L49
- wrong-import-order: third party import "from _pytest.compat import final" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L50
- wrong-import-order: third party import "from _pytest.compat import importlib_metadata" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L51
- wrong-import-order: third party import "from _pytest.outcomes import fail" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L52
- wrong-import-order: third party import "from _pytest.outcomes import Skipped" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L53
- wrong-import-order: third party import "from _pytest.pathlib import absolutepath" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L54
- wrong-import-order: third party import "from _pytest.pathlib import bestrelpath" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L55
- wrong-import-order: third party import "from _pytest.pathlib import import_path" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L56
- wrong-import-order: third party import "from _pytest.pathlib import ImportMode" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L57
- wrong-import-order: third party import "from _pytest.pathlib import resolve_package_path" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L58
- wrong-import-order: third party import "from _pytest.stash import Stash" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L59
- wrong-import-order: third party import "from _pytest.warning_types import PytestConfigWarning" should be placed before "from .exceptions import PrintHelp as PrintHelp" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L60
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L110
- consider-using-alias: 'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L110
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L134
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L135
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L269
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L270
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L305
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L306
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L361
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L365
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L365
- consider-using-alias: 'typing.Set' will be deprecated with PY39, consider using 'set' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L376
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L383
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L383
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L558
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L589
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L656
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L718
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L763
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L764
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L799
- consider-using-alias: 'typing.Iterator' will be deprecated with PY39, consider using 'collections.abc.Iterator' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L799
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L863
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L863
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L896
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L898
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L966
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L967
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L968
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L969
- consider-using-alias: 'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L969
- consider-using-alias: 'typing.Callable' will be deprecated with PY39, consider using 'collections.abc.Callable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1001
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1029
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1103
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1128
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1168
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1168
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1180
- consider-using-alias: 'typing.Generator' will be deprecated with PY39, consider using 'collections.abc.Generator' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1237
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1308
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1312
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1332
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1405
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1465
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1474
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1618
- consider-using-alias: 'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1618
- consider-using-alias: 'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1664
- consider-using-alias: 'typing.Type' will be deprecated with PY39, consider using 'type' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1687
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1710
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1710
- invalid-name: Argument name "v" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L84
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L84
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L94
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L94
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L94
- invalid-name: Variable name "p" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L110
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L118
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L119
- else-if-used: Consider using "elif" instead of "else" then "if" to remove one indentation level https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L126
- no-else-continue: Unnecessary "elif" after "continue", remove the leading "el" from "elif" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L126
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L141
- invalid-name: Argument name "x" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L142
- invalid-name: Argument name "x" doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L145
- missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L174
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L175
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L177
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L178
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L179
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Union'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L179
- consider-alternative-union-syntax: Consider using alternative Union syntax instead of 'Optional'. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L184
- consider-using-f-string: Formatting a regular string which could be a f-string https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L212
- wrong-import-order: third party import "from _pytest.outcomes import fail" should be placed before "from .exceptions import UsageError" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L16
- wrong-import-order: third party import "from _pytest.pathlib import absolutepath" should be placed before "from .exceptions import UsageError" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L17
- wrong-import-order: third party import "from _pytest.pathlib import commonpath" should be placed before "from .exceptions import UsageError" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L18
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L38
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L38
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L84
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L93
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L94
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L94
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L94
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L118
- consider-using-alias: 'typing.Iterable' will be deprecated with PY39, consider using 'collections.abc.Iterable' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L141
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L141
- consider-using-alias: 'typing.Sequence' will be deprecated with PY39, consider using 'collections.abc.Sequence' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L176
- consider-using-alias: 'typing.Tuple' will be deprecated with PY39, consider using 'tuple' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L179
- consider-using-alias: 'typing.Dict' will be deprecated with PY39, consider using 'dict' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L179
- consider-using-alias: 'typing.List' will be deprecated with PY39, consider using 'list' instead. Add 'from future import annotations' as well https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L179
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/pytest-dev/pytest/src/_pytest/debugging.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L1
- wrong-import-position: Import "import sys" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L3
- wrong-import-position: Import "import warnings" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L4
- wrong-import-position: Import "from typing import Any" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L5
- wrong-import-position: Import "from typing import Callable" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L6
- wrong-import-position: Import "from typing import cast" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L7
- wrong-import-position: Import "from typing import Optional" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L8
- wrong-import-position: Import "from typing import Type" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L9
- wrong-import-position: Import "from typing import TypeVar" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L10
- wrong-import-position: Import "from _pytest.deprecated import KEYWORD_MSG_ARG" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L12
- wrong-import-order: standard import "import sys" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L3
- wrong-import-order: standard import "import warnings" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L4
- wrong-import-order: standard import "from typing import Any" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L5
- wrong-import-order: standard import "from typing import Callable" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L6
- wrong-import-order: standard import "from typing import cast" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L7
- wrong-import-order: standard import "from typing import Optional" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L8
- wrong-import-order: standard import "from typing import Type" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L9
- wrong-import-order: standard import "from typing import TypeVar" should be placed before "from _pytest import outcomes" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L10
- ungrouped-imports: Imports from package sys are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L3
- ungrouped-imports: Imports from package typing are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L5
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/pytest-dev/pytest/src/_pytest/assertion/rewrite.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1
- wrong-import-position: Import "import argparse" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L1
- wrong-import-position: Import "import os" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L2
- wrong-import-position: Import "import sys" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L3
- wrong-import-position: Import "import warnings" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L4
- wrong-import-position: Import "from gettext import gettext" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L5
- wrong-import-position: Import "from typing import Any" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L6
- wrong-import-position: Import "from typing import Callable" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L7
- wrong-import-position: Import "from typing import cast" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L8
- wrong-import-position: Import "from typing import Dict" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L9
- wrong-import-position: Import "from typing import List" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L10
- wrong-import-position: Import "from typing import Mapping" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L11
- wrong-import-position: Import "from typing import Optional" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L12
- wrong-import-position: Import "from typing import Sequence" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L13
- wrong-import-position: Import "from typing import Tuple" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L14
- wrong-import-position: Import "from typing import TYPE_CHECKING" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L15
- wrong-import-position: Import "from typing import Union" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L16
- wrong-import-position: Import "import _pytest._io" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L18
- wrong-import-position: Import "from _pytest.compat import final" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L19
- wrong-import-position: Import "from _pytest.config.exceptions import UsageError" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L20
- wrong-import-position: Import "from _pytest.deprecated import ARGUMENT_PERCENT_DEFAULT" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L21
- wrong-import-position: Import "from _pytest.deprecated import ARGUMENT_TYPE_STR" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L22
- wrong-import-position: Import "from _pytest.deprecated import ARGUMENT_TYPE_STR_CHOICE" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L23
- wrong-import-position: Import "from _pytest.deprecated import check_ispytest" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L24
- wrong-import-order: standard import "import argparse" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L1
- wrong-import-order: standard import "import os" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L2
- wrong-import-order: standard import "import sys" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L3
- wrong-import-order: standard import "import warnings" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L4
- wrong-import-order: standard import "from gettext import gettext" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L5
- wrong-import-order: standard import "from typing import Any" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L6
- wrong-import-order: standard import "from typing import Callable" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L7
- wrong-import-order: standard import "from typing import cast" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L8
- wrong-import-order: standard import "from typing import Dict" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L9
- wrong-import-order: standard import "from typing import List" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L10
- wrong-import-order: standard import "from typing import Mapping" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L11
- wrong-import-order: standard import "from typing import Optional" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L12
- wrong-import-order: standard import "from typing import Sequence" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L13
- wrong-import-order: standard import "from typing import Tuple" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L14
- wrong-import-order: standard import "from typing import TYPE_CHECKING" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L15
- wrong-import-order: standard import "from typing import Union" should be placed before "from _pytest._io.saferepr import DEFAULT_REPR_MAX_SIZE" https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L16
- ungrouped-imports: Imports from package os are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L2
- ungrouped-imports: Imports from package sys are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L3
- ungrouped-imports: Imports from package typing are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L6
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/pytest-dev/pytest/src/_pytest/config/init.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1
- wrong-import-position: Import "import os" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L1
- wrong-import-position: Import "import sys" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L2
- wrong-import-position: Import "from pathlib import Path" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L3
- wrong-import-position: Import "from typing import Dict" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L4
- wrong-import-position: Import "from typing import Iterable" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L5
- wrong-import-position: Import "from typing import List" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L6
- wrong-import-position: Import "from typing import Optional" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L7
- wrong-import-position: Import "from typing import Sequence" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L8
- wrong-import-position: Import "from typing import Tuple" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L9
- wrong-import-position: Import "from typing import TYPE_CHECKING" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L10
- wrong-import-position: Import "from typing import Union" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L11
- wrong-import-position: Import "import iniconfig" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L13
- wrong-import-position: Import "from .exceptions import UsageError" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L15
- wrong-import-position: Import "from _pytest.outcomes import fail" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L16
- wrong-import-position: Import "from _pytest.pathlib import absolutepath" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L17
- wrong-import-position: Import "from _pytest.pathlib import commonpath" should be placed at the top of the module https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L18
- fatal: Fatal error while checking 'tests/.pylint_primer_tests/pytest-dev/pytest/src/_pytest/config/findpaths.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2022-05-29-02.txt'. https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L1
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'iattrs' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/builder.py#L248
- used-before-assignment: Using variable 'module' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L163
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'cls' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/protocols.py#L350
- used-before-assignment: Using variable 'boundnode' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/arguments.py#L216
- used-before-assignment: Using variable 'path' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/interpreter/_import/spec.py#L179
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L968
- used-before-assignment: Using variable 'default_sep' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L970
- used-before-assignment: Using variable 'position_in_inferred_bases' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L134
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'f' before assignment https://github.com/psf/black.git/blob/main/src/black/init.py#L915
- used-before-assignment: Using variable 'delim' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1065
- used-before-assignment: Using variable 'break_idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1291
- used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1413
- used-before-assignment: Using variable 'idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1760
- used-before-assignment: Using variable 'idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1803
- used-before-assignment: Using variable 'prev' before assignment https://github.com/psf/black.git/blob/main/src/black/linegen.py#L1160
- used-before-assignment: Using variable 'prevp' before assignment https://github.com/psf/black.git/blob/main/src/black/nodes.py#L219
- used-before-assignment: Using variable 's' before assignment https://github.com/psf/black.git/blob/main/src/black/report.py#L96
- used-before-assignment: Using variable 'new_body' before assignment https://github.com/psf/black.git/blob/main/src/black/strings.py#L206
- used-before-assignment: Using variable 'versions' before assignment https://github.com/psf/black.git/blob/main/src/blackd/init.py#L115
- used-before-assignment: Using variable 'pyi' before assignment https://github.com/psf/black.git/blob/main/src/blackd/init.py#L116
- used-before-assignment: Using variable 'r' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L566
- used-before-assignment: Using variable 'r' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L834
- used-before-assignment: Using variable 'count' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L834
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable 'i' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/literals.py#L44
- used-before-assignment: Using variable 'endmatch' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L458
- used-before-assignment: Using variable 'newline' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L572
- used-before-assignment: Using variable 'token' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L106
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L180
- used-before-assignment: Using variable 'itoken' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/pgen.py#L105
Effect on pytest: The following messages are now emitted:
- used-before-assignment: Using variable 'oldval' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/monkeypatch.py#L261
- used-before-assignment: Using variable 'capman' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L246
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L701
- used-before-assignment: Using variable 'fullwidth' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1052
- used-before-assignment: Using variable 'parts' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1262
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1354
- used-before-assignment: Using variable 'reason' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1413
- used-before-assignment: Using variable 'file_path' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L355
- used-before-assignment: Using variable 'func' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L863
- used-before-assignment: Using variable 'func' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L902
- used-before-assignment: Using variable 'ntraceback' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L1781
- used-before-assignment: Using variable 'formatter' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/logging.py#L606
- used-before-assignment: Using variable 'outcome' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/runner.py#L394
- used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pytester.py#L701
- used-before-assignment: Using variable 'pkginit' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/main.py#L703
- used-before-assignment: Using variable 'col' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/main.py#L705
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/main.py#L892
- used-before-assignment: Using variable 'out' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/cacheprovider.py#L218
- used-before-assignment: Using variable 'res' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/cacheprovider.py#L223
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L268
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L632
- used-before-assignment: Using variable 'param' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
- used-before-assignment: Using variable 'param_index' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
- used-before-assignment: Using variable 'node' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L722
- used-before-assignment: Using variable 'fixture_result' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L898
- used-before-assignment: Using variable 'reporter' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/junitxml.py#L559
- used-before-assignment: Using variable 'cls' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python_api.py#L735
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python_api.py#L916
- used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pathlib.py#L421
- used-before-assignment: Using variable 'module_file' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pathlib.py#L542
- used-before-assignment: Using variable 'outcome' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L356
- used-before-assignment: Using variable 'longrepr' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L357
- used-before-assignment: Using variable 'reprfuncargs' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L544
- used-before-assignment: Using variable 'reprlocals' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L545
- used-before-assignment: Using variable 'reprfileloc' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L546
- used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L553
- used-before-assignment: Using variable 'exception_info' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L596
- used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/mark/expression.py#L142
- used-before-assignment: Using variable 'mark' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/mark/structures.py#L72
- used-before-assignment: Using variable 'reprcrash' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/_code/code.py#L939
- used-before-assignment: Using variable 'i' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/util.py#L247
- used-before-assignment: Using variable 'variables' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L925
- used-before-assignment: Using variable 'cond' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L982
- used-before-assignment: Using variable 'action' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L446
- used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L675
- used-before-assignment: Using variable 'style' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1064
- used-before-assignment: Using variable 'value' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1445
- used-before-assignment: Using variable 'iniconfig' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L48
- used-before-assignment: Using variable 'inipath' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217
- used-before-assignment: Using variable 'inicfg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L968
- used-before-assignment: Using variable 'position_in_inferred_bases' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L134
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'break_idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1291
- used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1413
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L180
Effect on pytest: The following messages are now emitted:
- undefined-variable: Undefined variable 'parts' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1262
- used-before-assignment: Using variable 'param' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
- used-before-assignment: Using variable 'param_index' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
- used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pathlib.py#L421
- used-before-assignment: Using variable 'mark' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/mark/structures.py#L72
- used-before-assignment: Using variable 'inipath' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217
- used-before-assignment: Using variable 'inicfg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217
Leaving notes for when I come back: many of the messages in the primer differ refer to this pattern:
if magic:
magic_num = 1
...
if magic:
print(magic_num) # likely that nothing happened to `magic` in the meantime, so safe(ish)
Maybe a loose comparison of if-node tests or the pending astroid constraints PR could help.
I'm still in shock about how great the primer bot is. It's like developing pylint in easy mode.
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'mylineno' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L108
- used-before-assignment: Using variable 'lineno' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1037
- used-before-assignment: Using variable 'end_lineno' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1039
- used-before-assignment: Using variable 'end_col_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1040
- used-before-assignment: Using variable 'newnode' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1783
- used-before-assignment: Using variable 'name' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/bases.py#L144
- used-before-assignment: Using variable 'package' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/builder.py#L192
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'mro_pointer' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_builtin_inference.py#L426
- used-before-assignment: Using variable 'init_var' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L232
- used-before-assignment: Using variable 'assignment_str' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L233
- used-before-assignment: Using variable 'alignment' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L222
- used-before-assignment: Using variable 'string' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L230
- used-before-assignment: Using variable 'broken' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L783
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
- used-before-assignment: Using variable 'position_in_inferred_bases' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L134
- used-before-assignment: Using variable 'frame' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L1224
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'is_stdin' before assignment https://github.com/psf/black/blob/main/src/black/init.py#L625
- used-before-assignment: Using variable 'gitignore' before assignment https://github.com/psf/black/blob/main/src/black/init.py#L659
- used-before-assignment: Using variable 'orig_quote' before assignment https://github.com/psf/black/blob/main/src/black/strings.py#L186
- used-before-assignment: Using variable 'new_quote' before assignment https://github.com/psf/black/blob/main/src/black/strings.py#L191
- used-before-assignment: Using variable 'break_idx' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1291
- used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
- used-before-assignment: Using variable 'reformatted' before assignment https://github.com/psf/black/blob/main/src/black/report.py#L97
- used-before-assignment: Using variable 'unchanged' before assignment https://github.com/psf/black/blob/main/src/black/report.py#L102
- used-before-assignment: Using variable 'failed' before assignment https://github.com/psf/black/blob/main/src/black/report.py#L105
- used-before-assignment: Using variable 'user_config_path' before assignment https://github.com/psf/black/blob/main/src/black/files.py#L133
- used-before-assignment: Using variable 'versions' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L115
- used-before-assignment: Using variable 'pyi' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L116
- used-before-assignment: Using variable 'major_str' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L172
- used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
- used-before-assignment: Using variable 'i' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/literals.py#L44
- used-before-assignment: Using variable 'j' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/pgen.py#L256
Effect on flask: The following messages are now emitted:
- used-before-assignment: Using variable 'app' before assignment https://github.com/pallets/flask/blob/main/src/flask/cli.py#L172
- used-before-assignment: Using variable 'detail' before assignment https://github.com/pallets/flask/blob/main/src/flask/debughelpers.py#L143
- used-before-assignment: Using variable 'search_locations' before assignment https://github.com/pallets/flask/blob/main/src/flask/scaffold.py#L824
Effect on pandas: The following messages are now emitted:
- used-before-assignment: Using variable 'ind' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/hist.py#L199
- used-before-assignment: Using variable 'axes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L503
- used-before-assignment: Using variable 'norm' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1226
- used-before-assignment: Using variable 'it' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1320
- used-before-assignment: Using variable 'plotf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1332
- used-before-assignment: Using variable 'x' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1334
- used-before-assignment: Using variable 'rect' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1674
- used-before-assignment: Using variable 'ticklabels' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/boxplot.py#L175
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/boxplot.py#L433
- used-before-assignment: Using variable 'min_spacing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L498
- used-before-assignment: Using variable 'maj_spacing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L498
- used-before-assignment: Using variable 'periodspermonth' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L598
- used-before-assignment: Using variable 'periodsperyear' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L688
- used-before-assignment: Using variable 'locs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L984
- used-before-assignment: Using variable 'expected_codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L428
- used-before-assignment: Using variable 'expected_uniques' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L430
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L539
- used-before-assignment: Using variable 'uniques' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L540
- used-before-assignment: Using variable 'new_index_cls' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/common.py#L632
- used-before-assignment: Using variable 'match_but_not_identical' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/object/test_indexing.py#L102
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_date_range.py#L784
- used-before-assignment: Using variable 'expected_days' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L242
- used-before-assignment: Using variable 'err' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/numeric/test_indexing.py#L51
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/numeric/test_indexing.py#L51
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
- used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_numba.py#L268
- used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_numba.py#L304
- used-before-assignment: Using variable 'retval' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling_quantile.py#L33
- used-before-assignment: Using variable 'ax_min' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/plotting/frame/test_frame_subplots.py#L643
- used-before-assignment: Using variable 'min_edge' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/plotting/frame/test_frame_subplots.py#L643
- used-before-assignment: Using variable 'ax_max' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/plotting/frame/test_frame_subplots.py#L644
- used-before-assignment: Using variable 'max_edge' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/plotting/frame/test_frame_subplots.py#L644
- used-before-assignment: Using variable 'axis' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/plotting/frame/test_frame_subplots.py#L663
- used-before-assignment: Using variable 'center' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/plotting/frame/test_frame_subplots.py#L667
- used-before-assignment: Using variable 'exp_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/tools/test_to_numeric.py#L300
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/tools/test_to_numeric.py#L330
- used-before-assignment: Using variable 'exp_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/tools/test_to_numeric.py#L330
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/generic/test_label_or_level_utils.py#L146
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_indexing.py#L217
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_indexing.py#L217
- used-before-assignment: Using variable 'expected_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_apply.py#L880
- used-before-assignment: Using variable 'gb2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2416
- used-before-assignment: Using variable 'exp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2417
- used-before-assignment: Using variable 'columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2629
- used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2629
- used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L217
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L217
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L226
- used-before-assignment: Using variable 'test_op' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L422
- used-before-assignment: Using variable 'keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L938
- used-before-assignment: Using variable 'error' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/aggregate/test_aggregate.py#L221
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/aggregate/test_aggregate.py#L221
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/masked_shared.py#L48
- used-before-assignment: Using variable 'warn1' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/period/test_astype.py#L25
- used-before-assignment: Using variable 'expected_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/period/test_astype.py#L26
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/string_/test_string.py#L322
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/test_arithmetic.py#L752
- used-before-assignment: Using variable 'series' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/methods/test_convert_dtypes.py#L173
- used-before-assignment: Using variable 'expected_days' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/accessors/test_dt_accessor.py#L476
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/apply/test_frame_transform.py#L79
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/resample/test_period_index.py#L59
- used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/resample/test_resample_api.py#L881
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/resample/test_resample_api.py#L881
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_arithmetic.py#L1111
- used-before-assignment: Using variable 'skipna_wrapper' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_reductions.py#L114
- used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_reductions.py#L1885
- used-before-assignment: Using variable 'dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L161
- used-before-assignment: Using variable 'scalar_type' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L167
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_reset_index.py#L465
- used-before-assignment: Using variable 'recons' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_csv.py#L264
- used-before-assignment: Using variable 'assertion_iterator' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_dict.py#L421
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L37
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L165
- used-before-assignment: Using variable 'indices' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L165
- used-before-assignment: Using variable 'columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L165
- used-before-assignment: Using variable 'regex' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_replace.py#L1537
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_at_time.py#L110
- used-before-assignment: Using variable 'frame' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/indexing/test_getitem.py#L140
- used-before-assignment: Using variable 'missing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/indexing/test_getitem.py#L155
- used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/list/array.py#L104
- used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/json/array.py#L188
- used-before-assignment: Using variable 'compare' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/base/methods.py#L334
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/base/methods.py#L334
- used-before-assignment: Using variable 'kind' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/test_inference.py#L949
- used-before-assignment: Using variable 'itemsize' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/test_inference.py#L949
- used-before-assignment: Using variable 'expected_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L381
- used-before-assignment: Using variable 'exp_val_for_scalar' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L381
- used-before-assignment: Using variable 'expected_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L414
- used-before-assignment: Using variable 'exp_val_for_scalar' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L414
- used-before-assignment: Using variable 'expected_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L458
- used-before-assignment: Using variable 'exp_val_for_scalar' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L458
- used-before-assignment: Using variable 'expected_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L478
- used-before-assignment: Using variable 'exp_val_for_scalar' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/cast/test_promote.py#L478
- used-before-assignment: Using variable 'ts' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arithmetic/test_timedelta64.py#L1015
- used-before-assignment: Using variable 'err' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/test_indexing.py#L136
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/test_indexing.py#L136
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/test_iloc.py#L102
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/multiindex/test_loc.py#L351
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_find_replace.py#L753
- used-before-assignment: Using variable 'empty_int' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_strings.py#L184
- used-before-assignment: Using variable 'empty_bool' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_strings.py#L189
- used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
- used-before-assignment: Using variable 'error' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/interval/test_interval.py#L274
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/interval/test_interval.py#L274
- used-before-assignment: Using variable 'expected_day' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/timestamp/test_timestamp.py#L170
- used-before-assignment: Using variable 'expected_month' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/timestamp/test_timestamp.py#L171
- used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1914
- used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_compression.py#L122
- used-before-assignment: Using variable 'url' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/conftest.py#L51
- used-before-assignment: Using variable 'err' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L415
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L415
- used-before-assignment: Using variable 'content' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L565
- used-before-assignment: Using variable 'reader' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L569
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
- used-before-assignment: Using variable 'colors' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_matplotlib.py#L80
- used-before-assignment: Using variable 'styler' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_html.py#L806
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_json_table_schema.py#L502
- used-before-assignment: Using variable 'error' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_readers.py#L756
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_readers.py#L756
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L322
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L365
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L381
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_header.py#L466
- used-before-assignment: Using variable 'val' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_converters.py#L139
- used-before-assignment: Using variable 'kwargs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_python_parser_only.py#L231
- used-before-assignment: Using variable 'buf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_na_values.py#L125
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L51
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L118
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L138
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/common/test_common_basic.py#L856
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/common/test_float.py#L65
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/common/test_chunksize.py#L216
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/dtypes/test_dtypes_basic.py#L48
- used-before-assignment: Using variable 'klass' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/util/test_deprecate_kwarg.py#L89
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/util/test_deprecate_kwarg.py#L90
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L776
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L814
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L840
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L879
- used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
- used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L958
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_qcut.py#L211
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L226
- used-before-assignment: Using variable 'typ' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L226
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L381
- used-before-assignment: Using variable 'typ' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L381
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L409
- used-before-assignment: Using variable 'typ' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L409
- used-before-assignment: Using variable 'exp_data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/concat/test_append_common.py#L104
- used-before-assignment: Using variable 'exp_data3' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/concat/test_append_common.py#L109
- used-before-assignment: Using variable 'results_merge' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/merge/test_multi.py#L500
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/merge/test_multi.py#L500
- used-before-assignment: Using variable 'results_join' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/merge/test_multi.py#L501
- used-before-assignment: Using variable 'ngroups' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/sorting.py#L301
- used-before-assignment: Using variable 'map_f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/base.py#L882
- used-before-assignment: Using variable 'shape' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/construction.py#L820
- used-before-assignment: Using variable 'name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L526
- used-before-assignment: Using variable 'mapped' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L1146
- used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
- used-before-assignment: Using variable 'new_y' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L537
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L789
- used-before-assignment: Using variable 'count' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L1201
- used-before-assignment: Using variable 'count' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L1289
- used-before-assignment: Using variable 'null_mask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L1470
- used-before-assignment: Using variable 'level' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L586
- used-before-assignment: Using variable 'key' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L589
- used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L3797
- used-before-assignment: Using variable 'new_axis' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L4290
- used-before-assignment: Using variable 'threshold_inf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L7457
- used-before-assignment: Using variable 'vslicer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L9623
- used-before-assignment: Using variable 'islicer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L9624
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L10449
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L2443
- used-before-assignment: Using variable 'name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L2469
- used-before-assignment: Using variable 'names' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L2492
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L3461
- used-before-assignment: Using variable 'icol' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L3949
- used-before-assignment: Using variable 'iindex' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L3949
- used-before-assignment: Using variable 'ndf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10236
- used-before-assignment: Using variable 'correl' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10294
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10521
- used-before-assignment: Using variable 'ufunc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10625
- used-before-assignment: Using variable 'values' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L524
- used-before-assignment: Using variable 'loc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L1229
- used-before-assignment: Using variable 'lmask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L5464
- used-before-assignment: Using variable 'rmask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L5464
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L5494
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1424
- used-before-assignment: Using variable 'ordered' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1727
- used-before-assignment: Using variable 'new_codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1766
- used-before-assignment: Using variable 'top' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/describe.py#L270
- used-before-assignment: Using variable 'freq' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/describe.py#L270
- used-before-assignment: Using variable 'dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/describe.py#L274
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L1032
- used-before-assignment: Using variable 'missing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3400
- used-before-assignment: Using variable 'tgt_values' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3980
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3982
- used-before-assignment: Using variable 'diff' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4174
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4302
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4450
- used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L6078
- used-before-assignment: Using variable 'time_micros' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimes.py#L823
- used-before-assignment: Using variable 'lop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimes.py#L872
- used-before-assignment: Using variable 'rop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimes.py#L872
- used-before-assignment: Using variable 'key_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/interval.py#L570
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimelike.py#L494
- used-before-assignment: Using variable 'new_levels' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L817
- used-before-assignment: Using variable 'idx_names' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L1809
- used-before-assignment: Using variable 'start' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
- used-before-assignment: Using variable 'stop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
- used-before-assignment: Using variable 'new_indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3188
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/category.py#L425
- used-before-assignment: Using variable 'missing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/category.py#L431
- used-before-assignment: Using variable 'start' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/range.py#L412
- used-before-assignment: Using variable 'step' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/range.py#L413
- used-before-assignment: Using variable 'stop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/range.py#L413
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/construction.py#L818
- used-before-assignment: Using variable 'block' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L319
- used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L342
- used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L359
- used-before-assignment: Using variable 'new_axes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L544
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
- used-before-assignment: Using variable 'columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1036
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1037
- used-before-assignment: Using variable 'allow_fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1109
- used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1114
- used-before-assignment: Using variable 'm' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/blocks.py#L731
- used-before-assignment: Using variable 'allow_fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/blocks.py#L867
- used-before-assignment: Using variable 'noop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/blocks.py#L1164
- used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L326
- used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L352
- used-before-assignment: Using variable 'new_axes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L568
- used-before-assignment: Using variable 'blknos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L755
- used-before-assignment: Using variable 'blklocs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L783
- used-before-assignment: Using variable 'new_mgr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L1386
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L1386
- used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L1487
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/concat.py#L103
- used-before-assignment: Using variable 'last_value' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/ewm.py#L1050
- used-before-assignment: Using variable 'np_array' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/ewm.py#L1063
- used-before-assignment: Using variable 'result_from' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/ewm.py#L1070
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/rolling.py#L1978
- used-before-assignment: Using variable 'op_result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L634
- used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
- used-before-assignment: Using variable 'single' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L181
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L484
- used-before-assignment: Using variable 'sorter' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L665
- used-before-assignment: Using variable 'llab' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L674
- used-before-assignment: Using variable 'acc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L709
- used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L1124
- used-before-assignment: Using variable 'keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L1783
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L1674
- used-before-assignment: Using variable 'filtered' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L1837
- used-before-assignment: Using variable 'grouper' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L3098
- used-before-assignment: Using variable 'shaped_labels' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L3237
- used-before-assignment: Using variable 'sample_size' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4186
- used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
- used-before-assignment: Using variable 'mi' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4270
- used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/base.py#L864
- used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/base.py#L864
- used-before-assignment: Using variable 'codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L637
- used-before-assignment: Using variable 'codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L971
- used-before-assignment: Using variable 'count' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L1658
- used-before-assignment: Using variable 'codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L2842
- used-before-assignment: Using variable 'categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L2842
- used-before-assignment: Using variable 'lhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L596
- used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L597
- used-before-assignment: Using variable 'obj' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L838
- used-before-assignment: Using variable 'obj' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L855
- used-before-assignment: Using variable 'empty' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1023
- used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1028
- used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1028
- used-before-assignment: Using variable 'summary' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1214
- used-before-assignment: Using variable 'new_left' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1713
- used-before-assignment: Using variable 'new_right' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1713
- used-before-assignment: Using variable 'base' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/period.py#L515
- used-before-assignment: Using variable 'dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L214
- used-before-assignment: Using variable 'opname' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L235
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
- used-before-assignment: Using variable 'fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
- used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L820
- used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L820
- used-before-assignment: Using variable 'mask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L906
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L1222
- used-before-assignment: Using variable 'res_values' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/ops/invalid.py#L35
- used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L519
- used-before-assignment: Using variable 'row_needs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L543
- used-before-assignment: Using variable 'col_needs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L545
- used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L577
- used-before-assignment: Using variable 'f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/accessor.py#L1877
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/accessor.py#L2604
- used-before-assignment: Using variable 'name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/accessor.py#L2604
- used-before-assignment: Using variable 'f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/object_array.py#L131
- used-before-assignment: Using variable 'f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/object_array.py#L165
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/ops.py#L461
- used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
- used-before-assignment: Using variable 'values_multi' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L241
- used-before-assignment: Using variable 'row_margin' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L308
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L308
- used-before-assignment: Using variable 'margin_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L310
- used-before-assignment: Using variable 'kwargs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L677
- used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L171
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L326
- used-before-assignment: Using variable 'rvals' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L909
- used-before-assignment: Using variable 'lvals' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L916
- used-before-assignment: Using variable 'key_col' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L924
- used-before-assignment: Using variable 'result_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L924
- used-before-assignment: Using variable 'idx' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L1606
- used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L1612
- used-before-assignment: Using variable 'adjust' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/tile.py#L585
- used-before-assignment: Using variable 'concat_axis' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/concat.py#L696
- used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/_testing/init.py#L646
- used-before-assignment: Using variable 'module_to_get' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/compat/_optional.py#L154
- used-before-assignment: Using variable 'r' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/html.py#L751
- used-before-assignment: Using variable 'where' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L1961
- used-before-assignment: Using variable 'col_name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L2428
- used-before-assignment: Using variable 'converted' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L2497
- used-before-assignment: Using variable 'kind' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L2558
- used-before-assignment: Using variable 'table_exists' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L3884
- used-before-assignment: Using variable 'nrows' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L4473
- used-before-assignment: Using variable 'cols_' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L4600
- used-before-assignment: Using variable 'index_' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L4600
- used-before-assignment: Using variable 'conv_dates' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L481
- used-before-assignment: Using variable 'v_o' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1604
- used-before-assignment: Using variable 'initial_categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1918
- used-before-assignment: Using variable 'max_str_len' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L2149
- used-before-assignment: Using variable 'end_a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/html.py#L192
- used-before-assignment: Using variable 'terminal_width' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/console.py#L46
- used-before-assignment: Using variable 'terminal_height' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/console.py#L46
- used-before-assignment: Using variable 'nrows' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/string.py#L147
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
- used-before-assignment: Using variable 'axis_apply' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3555
- used-before-assignment: Using variable 'q' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3558
- used-before-assignment: Using variable 'head' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L400
- used-before-assignment: Using variable 'tail' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L400
- used-before-assignment: Using variable 'space2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L417
- used-before-assignment: Using variable 'space1' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L452
- used-before-assignment: Using variable 'str_columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/format.py#L868
- used-before-assignment: Using variable 'created_buffer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/format.py#L1184
- used-before-assignment: Using variable 'coloffset' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/excel.py#L734
- used-before-assignment: Using variable 'obj' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/json/_json.py#L760
- used-before-assignment: Using variable 'style' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_xlwt.py#L215
- undefined-variable: Undefined variable 'header_rows' https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_base.py#L653
- used-before-assignment: Using variable 'xlrd_version' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_base.py#L1576
- used-before-assignment: Using variable 'i' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_util.py#L303
- used-before-assignment: Using variable 'processor' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/sas/sas7bdat.py#L521
- used-before-assignment: Using variable 'col_na_values' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/base_parser.py#L506
- used-before-assignment: Using variable 'col_na_fvalues' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/base_parser.py#L506
- used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/base_parser.py#L1049
- used-before-assignment: Using variable 'engine_specified' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1387
- used-before-assignment: Using variable 'df' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1772
- used-before-assignment: Using variable 'regex' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/python_parser.py#L173
- used-before-assignment: Using variable 'index_name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/python_parser.py#L964
- used-before-assignment: Using variable 'new_pos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/python_parser.py#L1080
- used-before-assignment: Using variable 'len_new_rows' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/python_parser.py#L1120
- used-before-assignment: Using variable 'allow_args' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/_decorators.py#L302
- used-before-assignment: Using variable 'hcells' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/_doctools.py#L44
- used-before-assignment: Using variable 'vcells' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/_doctools.py#L44
- used-before-assignment: Using variable '_post' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
- used-before-assignment: Using variable '_dev' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
- used-before-assignment: Using variable '_local' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
Effect on psycopg: The following messages are now emitted:
- used-before-assignment: Using variable 'hp' before assignment https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/_dns.py#L256
- used-before-ass...
This comment was truncated because GitHub allows only 65536 characters in a comment.
This comment was generated for commit dcfb322391ec318603402c47605167875b7724df
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'mro_pointer' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_builtin_inference.py#L426
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
- used-before-assignment: Using variable 'position_in_inferred_bases' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L134
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
- used-before-assignment: Using variable 'versions' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L115
- used-before-assignment: Using variable 'pyi' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L116
- used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
- used-before-assignment: Using variable 'i' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/literals.py#L44
Effect on flask: The following messages are now emitted:
- used-before-assignment: Using variable 'app' before assignment https://github.com/pallets/flask/blob/main/src/flask/cli.py#L172
Effect on pandas: The following messages are now emitted:
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_date_range.py#L784
- used-before-assignment: Using variable 'expected_days' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_misc.py#L242
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L226
- used-before-assignment: Using variable 'test_op' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L422
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/test_arithmetic.py#L752
- used-before-assignment: Using variable 'series' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/methods/test_convert_dtypes.py#L173
- used-before-assignment: Using variable 'expected_days' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/accessors/test_dt_accessor.py#L476
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
- used-before-assignment: Using variable 'recons' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_csv.py#L264
- used-before-assignment: Using variable 'assertion_iterator' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_dict.py#L421
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_at_time.py#L110
- used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/list/array.py#L104
- used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/json/array.py#L188
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/multiindex/test_loc.py#L351
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_find_replace.py#L753
- used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
- used-before-assignment: Using variable 'expected_day' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/timestamp/test_timestamp.py#L170
- used-before-assignment: Using variable 'expected_month' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/timestamp/test_timestamp.py#L171
- used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1914
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
- used-before-assignment: Using variable 'colors' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_matplotlib.py#L80
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_json_table_schema.py#L502
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L322
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L365
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L381
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_header.py#L466
- used-before-assignment: Using variable 'buf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_na_values.py#L125
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L51
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L118
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L138
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/common/test_common_basic.py#L856
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/common/test_chunksize.py#L216
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L776
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L814
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L840
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L879
- used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
- used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L958
- used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L789
- used-before-assignment: Using variable 'loc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L1229
- used-before-assignment: Using variable 'ordered' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1727
- used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
- used-before-assignment: Using variable 'start' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
- used-before-assignment: Using variable 'stop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
- used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
- used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
- used-before-assignment: Using variable 'lhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L596
- used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L597
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
- used-before-assignment: Using variable 'fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
- used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
- used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L171
- used-before-assignment: Using variable 'r' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/html.py#L751
- used-before-assignment: Using variable 'initial_categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1918
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
- used-before-assignment: Using variable 'axis_apply' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3555
- used-before-assignment: Using variable 'processor' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/sas/sas7bdat.py#L521
- used-before-assignment: Using variable 'df' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1772
- used-before-assignment: Using variable '_post' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
- used-before-assignment: Using variable '_dev' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
- used-before-assignment: Using variable '_local' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
Effect on psycopg: The following messages are now emitted:
- used-before-assignment: Using variable 'imo' before assignment https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/types/datetime.py#L469
Effect on pygame: The following messages are now emitted:
- used-before-assignment: Using variable 'found' before assignment https://github.com/pygame/pygame/blob/main/src_py/sysfont.py#L327
Effect on pytest: The following messages are now emitted:
- used-before-assignment: Using variable 'formatter' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/logging.py#L606
- used-before-assignment: Using variable 'capman' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/debugging.py#L246
- used-before-assignment: Using variable 'module' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/doctest.py#L561
- used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/pytester.py#L701
- used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/pytester.py#L1429
- used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
- used-before-assignment: Using variable 'exception_info' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L596
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
- used-before-assignment: Using variable 'fixture_result' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L893
- used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/expression.py#L139
- used-before-assignment: Using variable 'mark' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/structures.py#L72
- used-before-assignment: Using variable 'fields_to_check' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/assertion/util.py#L455
- used-before-assignment: Using variable 'reprcrash' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/_code/code.py#L939
- used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
- used-before-assignment: Using variable 'style' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L1064
- used-before-assignment: Using variable 'value' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L1445
- used-before-assignment: Using variable 'inipath' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/findpaths.py#L217
Effect on sentry: The following messages are now emitted:
- used-before-assignment: Using variable 'sso_is_valid' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/auth/access.py#L82
- used-before-assignment: Using variable 'discriminator' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/duplex.py#L554
- used-before-assignment: Using variable 'project_ids' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/metrics.py#L596
- used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
- used-before-assignment: Using variable 'assignee_text' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/slack/message_builder/issues.py#L98
- used-before-assignment: Using variable 'default_user_id' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/receivers/onboarding.py#L79
- used-before-assignment: Using variable 'default_user_id' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/receivers/onboarding.py#L421
- used-before-assignment: Using variable 'parsed_hostname' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/utils/http.py#L173
- used-before-assignment: Using variable 'result' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/utils/safe.py#L44
- used-before-assignment: Using variable 'body' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L769
- used-before-assignment: Using variable 'port' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/runner/commands/run.py#L30
- used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
- used-before-assignment: Using variable 'keys' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py#L84
- used-before-assignment: Using variable 'stacktrace_variants' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/strategies/newstyle.py#L629
- used-before-assignment: Using variable 'results' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/base.py#L365
- used-before-assignment: Using variable 'stat_model' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/endpoints/project_stats.py#L64
- used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/user.py#L189
- used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/team.py#L238
- used-before-assignment: Using variable 'releasefile' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/releasefile.py#L306
- used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
- used-before-assignment: Using variable 'is_member' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/project.py#L331
- used-before-assignment: Using variable 'created' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/grouprelease.py#L70
This comment was generated for commit f210519871bc0c37eb91341a758719ffc9b2067b
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
- used-before-assignment: Using variable 'position_in_inferred_bases' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L134
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
- used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
Effect on pandas: The following messages are now emitted:
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_date_range.py#L784
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
- used-before-assignment: Using variable 'test_op' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L422
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
- used-before-assignment: Using variable 'assertion_iterator' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_dict.py#L421
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_at_time.py#L110
- used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
- used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
- used-before-assignment: Using variable 'colors' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_matplotlib.py#L80
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_json_table_schema.py#L502
- used-before-assignment: Using variable 'buf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_na_values.py#L125
- used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
- used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
- used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
- used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
- used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
- used-before-assignment: Using variable 'initial_categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1918
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
- used-before-assignment: Using variable 'axis_apply' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3555
- used-before-assignment: Using variable '_post' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
- used-before-assignment: Using variable '_dev' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
- used-before-assignment: Using variable '_local' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
Effect on pygame: The following messages are now emitted:
- used-before-assignment: Using variable 'found' before assignment https://github.com/pygame/pygame/blob/main/src_py/sysfont.py#L327
Effect on pytest: The following messages are now emitted:
- used-before-assignment: Using variable 'formatter' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/logging.py#L606
- used-before-assignment: Using variable 'capman' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/debugging.py#L246
- used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/pytester.py#L701
- used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
- used-before-assignment: Using variable 'exception_info' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L596
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
- used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/expression.py#L139
- used-before-assignment: Using variable 'fields_to_check' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/assertion/util.py#L455
- used-before-assignment: Using variable 'reprcrash' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/_code/code.py#L939
- used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
- used-before-assignment: Using variable 'style' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L1064
- used-before-assignment: Using variable 'inipath' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/findpaths.py#L217
Effect on sentry: The following messages are now emitted:
- used-before-assignment: Using variable 'discriminator' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/duplex.py#L554
- used-before-assignment: Using variable 'project_ids' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/metrics.py#L596
- used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
- used-before-assignment: Using variable 'port' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/runner/commands/run.py#L30
- used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
- used-before-assignment: Using variable 'keys' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py#L84
- used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/user.py#L189
- used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/team.py#L238
- used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
- used-before-assignment: Using variable 'is_member' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/project.py#L331
This comment was generated for commit 31966f4d5f6dcd1de739c3bc714fd8796307dc02
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
- used-before-assignment: Using variable 'position_in_inferred_bases' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L134
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
- used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
Effect on pandas: The following messages are now emitted:
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_date_range.py#L784
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
- used-before-assignment: Using variable 'test_op' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L422
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
- used-before-assignment: Using variable 'assertion_iterator' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_dict.py#L421
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_at_time.py#L110
- used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
- used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
- used-before-assignment: Using variable 'colors' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_matplotlib.py#L80
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_json_table_schema.py#L502
- used-before-assignment: Using variable 'buf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_na_values.py#L125
- used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
- used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
- used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
- used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
- used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
Effect on pygame: The following messages are now emitted:
- used-before-assignment: Using variable 'found' before assignment https://github.com/pygame/pygame/blob/main/src_py/sysfont.py#L327
Effect on pytest: The following messages are now emitted:
- used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
- used-before-assignment: Using variable 'fields_to_check' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/assertion/util.py#L455
- used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
Effect on sentry: The following messages are now emitted:
- used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
- used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
- used-before-assignment: Using variable 'keys' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py#L84
- used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
- used-before-assignment: Using variable 'is_member' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/project.py#L331
This comment was generated for commit a0b85eed0045b2bdba60725ef38cbccb2ace855a
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
- used-before-assignment: Using variable 'position_in_inferred_bases' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/scoped_nodes/scoped_nodes.py#L134
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
- used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
Effect on pandas: The following messages are now emitted:
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_date_range.py#L784
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
- used-before-assignment: Using variable 'test_op' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L422
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
- used-before-assignment: Using variable 'assertion_iterator' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_dict.py#L421
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_at_time.py#L110
- used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
- used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
- used-before-assignment: Using variable 'colors' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_matplotlib.py#L80
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_json_table_schema.py#L502
- used-before-assignment: Using variable 'buf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_na_values.py#L125
- used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
- used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
- used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
- used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
- used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
Effect on pygame: The following messages are now emitted:
- used-before-assignment: Using variable 'found' before assignment https://github.com/pygame/pygame/blob/main/src_py/sysfont.py#L327
Effect on pytest: The following messages are now emitted:
- used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
- used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
Effect on sentry: The following messages are now emitted:
- used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
- used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
- used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
- used-before-assignment: Using variable 'is_member' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/project.py#L331
This comment was generated for commit ed5bd3b294cb27314de28f395e8c6de436b50912
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
Effect on pandas: The following messages are now emitted:
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_date_range.py#L784
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
- used-before-assignment: Using variable 'test_op' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L422
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
- used-before-assignment: Using variable 'assertion_iterator' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_dict.py#L421
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_at_time.py#L110
- used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
- used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
- used-before-assignment: Using variable 'colors' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_matplotlib.py#L80
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_json_table_schema.py#L502
- used-before-assignment: Using variable 'buf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_na_values.py#L125
- used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
- used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
- used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
- used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
Effect on pytest: The following messages are now emitted:
- used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
- used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
Effect on sentry: The following messages are now emitted:
- used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
- used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
- used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
- used-before-assignment: Using variable 'is_member' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/project.py#L331
This comment was generated for commit 96b9713a1506e234b6d3eb84ac8920c16c7fc712
Along the lines of #2835, this should probably be a new message possibly-used-before-assignment or possibly-unbound. The two patterns that the primer projects and pylint itself are failing on are:
1
if magic:
magic_num = 1
...
if magic:
print(magic_num) # likely but not certain that nothing happened to `magic` in the meantime
2
# handle two possible values
if flag == "expected_val1":
magic_num = 1
elif flag == "expected_val2":
magic_num = 2
# no else ... so magic_num may not be defined ... but does this ever realistically happen?
print(magic_num)
🤖 Effect of this PR on checked open source code: 🤖
Effect on astroid: The following messages are now emitted:
- used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
- used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
Effect on black: The following messages are now emitted:
- used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
- used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
- used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
Effect on pandas: The following messages are now emitted:
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/datetimes/test_date_range.py#L784
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
- used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
- used-before-assignment: Using variable 'test_op' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L422
- used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
- used-before-assignment: Using variable 'assertion_iterator' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_to_dict.py#L421
- used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_at_time.py#L110
- used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
- used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
- used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
- used-before-assignment: Using variable 'colors' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/style/test_matplotlib.py#L80
- used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/json/test_json_table_schema.py#L502
- used-before-assignment: Using variable 'buf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_na_values.py#L125
- used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
- used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
- used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
- used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
- used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4196
- used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L153
- used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
- used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1753
Effect on pytest: The following messages are now emitted:
- used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
- used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
- used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
Effect on sentry: The following messages are now emitted:
- used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
- used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1449
- used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
- used-before-assignment: Using variable 'is_member' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/project.py#L331
This comment was generated for commit 3350129bf2bf899f825f8630047ef3e1f1ba9cb3
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉
This comment was generated for commit 3b97e78da4616b9673f4817a1464305e898d05d2
Along the lines of https://github.com/PyCQA/pylint/issues/2835, this should probably be a new message possibly-used-before-assignment or possibly-unbound. The two patterns that the primer projects and pylint itself are failing on are:
Actually, these patterns turned out to be not an issue because I wasn't correctly checking that all the inferred values were falsy. So that problem goes away. At least pattern 1 could be worth thinking about when doing #2835, though.
🤖 Effect of this PR on checked open source code: 🤖
Effect on pandas: The following messages are now emitted:
- no-member: Instance of 'Index' has no 'tz' member https://github.com/pandas-dev/pandas/blob/main/pandas/core/tools/datetimes.py#L570
This comment was generated for commit 2a86670aa80eb0c7d336720e66c8820e765b9d0b
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉
This comment was generated for commit 24d384c7cb38467ec0bad29792ecad37d0445664
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉
This comment was generated for commit a6eadd4c5e1afdc6d7f91e6ba4aa2c74395b9aa5
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉
This comment was generated for commit 0f51b9775ed53249a9885fd462f79eeab61c519e
🤖 Effect of this PR on checked open source code: 🤖
Effect on pandas: The following messages are now emitted:
- redefined-variable-type: Redefinition of indexer type from .ndarray to slice https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3143
This comment was generated for commit 14e728f407804f29aba45c0427544611339dffa9
🤖 Effect of this PR on checked open source code: 🤖
Effect on pandas: The following messages are now emitted:
- redefined-variable-type: Redefinition of indexer type from .ndarray to slice https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3143
This comment was generated for commit 12025fcdd1bfd1626309d226ca97dc967462fec9
🤖 Effect of this PR on checked open source code: 🤖
Effect on pandas: The following messages are now emitted:
- redefined-variable-type: Redefinition of indexer type from .ndarray to slice https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3143
This comment was generated for commit 3de7eec13c1022a920878258ad71020e48ffe072
🤖 Effect of this PR on checked open source code: 🤖
Effect on pandas: The following messages are now emitted:
- redefined-variable-type: Redefinition of indexer type from .ndarray to slice https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3150
This comment was generated for commit 11e9b28da6855de2e194cbad76993dc494c36100
I feel like we need a generic solution in astroid, something like infer raising a different exception when the variable can be unassigned, maybe ? Or an assigned boolean attribute in nodes ?
I just want to relate this to @DanielNoord's comment about the astroid constraint PR.
I think we might be conflating two things. The current proposal in PyCQA/astroid#1189 is to add constraints on inferred values. Here, we're not using inference. We don't care what values undefined_var takes: if it's never defined, it's undefined! We don't need to infer it, and it would be a waste of time to do so.
There is an a lot of check that require control flow, implementing control flow in each checkers is going to be a lot more work than doing that in astroid directly.
I'm sympathetic to that, but another way to look at it would be this is a "soft-launch" of control flow, using just one message, where the pylint primer results look promising, and then as we iron out kinks, we can implement a similar approach in astroid later, and extend it for del and the rest.