pylint icon indicating copy to clipboard operation
pylint copied to clipboard

Emit `used-before-assignment` for variables only defined under always false tests

Open jacobtylerwalls opened this issue 3 years ago • 29 comments

Type of Changes

Type
:sparkles: New feature

Description

Closes #4913

jacobtylerwalls avatar May 23 '22 18:05 jacobtylerwalls

@jacobtylerwalls This seems like it could benefit from https://github.com/PyCQA/astroid/pull/1189. Perhaps we should try and get that landed first?

DanielNoord avatar May 23 '22 18:05 DanielNoord

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

jacobtylerwalls avatar May 23 '22 18:05 jacobtylerwalls

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.

DanielNoord avatar May 23 '22 18:05 DanielNoord

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

jacobtylerwalls avatar May 23 '22 19:05 jacobtylerwalls

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 Coverage Status
Change from base Build 3505356469: -0.003%
Covered Lines: 17449
Relevant Lines: 18288

💛 - Coveralls

coveralls avatar May 23 '22 19:05 coveralls

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'alignment' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L209
  2. used-before-assignment: Using variable 'string' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L217
  3. used-before-assignment: Using variable 'string' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L229

github-actions[bot] avatar May 28 '22 21:05 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are no longer emitted:

  1. protected-access: Access to a protected member __cache of a client class https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L36
  2. 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
  3. 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
  4. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L110
  5. protected-access: Access to a protected member _proxied of a client class https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L111
  6. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L122
  7. unused-argument: Unused argument 'instance' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L122
  8. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L136
  9. unused-argument: Unused argument 'instance' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L136
  10. 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
  11. too-many-boolean-expressions: Too many boolean expressions in if statement (7/5) https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L191
  12. 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
  13. unused-argument: Unused argument 'astroid_version' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L257
  14. unused-argument: Unused argument 'arguments' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L257
  15. unused-argument: Unused argument 'astroid_version' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L268
  16. unused-argument: Unused argument 'arguments' https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L268
  17. suppressed-message: Suppressed 'not-a-mapping' (from line 143) https://github.com/PyCQA/astroid/blob/main/astroid/decorators.py#L144
  18. 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
  19. too-many-try-statements: try clause contains 8 statements, expected at most 1 https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L80
  20. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L99
  21. 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
  22. 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
  23. compare-to-zero: Avoid comparisons to zero https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L189
  24. compare-to-zero: Avoid comparisons to zero https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L191
  25. compare-to-zero: Avoid comparisons to zero https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L197
  26. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L585
  27. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L704
  28. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L734
  29. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L759
  30. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L764
  31. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L767
  32. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L779
  33. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L895
  34. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L960
  35. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1051
  36. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1057
  37. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1173
  38. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1243
  39. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1266
  40. redefined-loop-name: Redefining 'name' from loop (line 1398) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1399
  41. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1385
  42. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1403
  43. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1415
  44. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1435
  45. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1566
  46. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1578
  47. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1593
  48. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1602
  49. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1602
  50. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1613
  51. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1624
  52. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1633
  53. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1782
  54. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1865
  55. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1898
  56. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1915
  57. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1930
  58. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1944
  59. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1955
  60. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1968
  61. no-self-use: Method could be a function https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1968
  62. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1980
  63. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1995
  64. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2014
  65. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2034
  66. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2049
  67. missing-function-docstring: Missing function or method docstring https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L2065
  68. too-many-public-methods: Too many public methods (80/25) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L56
  69. suppressed-message: Suppressed 'unsubscriptable-object' (from line 132) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L132
  70. suppressed-message: Suppressed 'unsubscriptable-object' (from line 179) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L179
  71. suppressed-message: Suppressed 'unsubscriptable-object' (from line 1153) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1153
  72. suppressed-message: Suppressed 'unsubscriptable-object' (from line 1874) https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1874
  73. 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
  74. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L208
  75. 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
The following messages are now emitted:
  1. 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
  2. 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
  3. 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
  4. 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
  5. ungrouped-imports: Imports from package future are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L9
  6. ungrouped-imports: Imports from package astroid are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L11
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. ungrouped-imports: Imports from package future are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L10
  29. ungrouped-imports: Imports from package typing are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L17
  30. ungrouped-imports: Imports from package astroid are not grouped https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L19
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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:

  1. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L141
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L160
  8. docstring-first-line-empty: First line empty in method docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L179
  9. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/mode.py#L190
  10. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/mode.py#L191
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. compare-to-zero: Avoid comparisons to zero https://github.com/psf/black.git/blob/main/src/black/brackets.py#L101
  19. 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
  20. 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
  21. unused-argument: Unused argument 'previous' https://github.com/psf/black.git/blob/main/src/black/brackets.py#L199
  22. 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
  23. too-many-return-statements: Too many return statements (14/11) https://github.com/psf/black.git/blob/main/src/black/brackets.py#L213
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L52
  34. 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
  35. 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
  36. 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
  37. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L135
  38. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L151
  39. 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
  40. 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
  41. 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
  42. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L166
  43. 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
  44. 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
  45. 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
  46. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/parsing.py#L184
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. redefined-loop-name: Redefining 'line' from loop (line 84) https://github.com/psf/black.git/blob/main/src/black/comments.py#L86
  61. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/comments.py#L97
  62. 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
  63. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/black/comments.py#L140
  64. 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
  65. 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
  66. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/black/comments.py#L223
  67. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/black/comments.py#L234
  68. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/comments.py#L277
  69. consider-using-any-or-all: for loop could be any(comment.value.startswith(('# type:', '# noqa', '# pylint:')) for comment in comment_list) https://github.com/psf/black.git/blob/main/src/black/comments.py#L284
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/nodes.py#L169
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. 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
  109. 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
  110. too-many-return-statements: Too many return statements (48/11) https://github.com/psf/black.git/blob/main/src/black/nodes.py#L190
  111. too-many-branches: Too many branches (73/27) https://github.com/psf/black.git/blob/main/src/black/nodes.py#L190
  112. 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
  113. 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
  114. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/black/nodes.py#L422
  115. 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
  116. 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
  117. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L454
  118. 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
  119. 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
  120. 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
  121. 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
  122. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/black/nodes.py#L470
  123. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L475
  124. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/black/nodes.py#L499
  125. 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
  126. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L535
  127. 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
  128. 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
  129. 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
  130. compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L758
  131. compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L761
  132. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L765
  133. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L769
  134. compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L770
  135. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L773
  136. compare-to-empty-string: Avoid comparisons to empty string https://github.com/psf/black.git/blob/main/src/black/nodes.py#L774
  137. 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
  138. 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
  139. 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
  140. 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
  141. 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
  142. 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
  143. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L843
  144. 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
  145. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L847
  146. 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
  147. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L851
  148. 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
  149. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/nodes.py#L855
  150. 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
  151. 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
  152. 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
  153. 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
  154. 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
  155. 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
  156. 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
  157. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L32
  158. 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
  159. 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
  160. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L41
  161. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L63
  162. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L87
  163. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/black/strings.py#L99
  164. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L106
  165. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/psf/black.git/blob/main/src/black/strings.py#L124
  166. use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/black/strings.py#L132
  167. 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
  168. misplaced-comparison-constant: Comparison should be new_prefix[0].lower() != 'r' https://github.com/psf/black.git/blob/main/src/black/strings.py#L154
  169. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/black/strings.py#L163
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L183
  181. missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L187
  182. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L191
  183. redefined-builtin: Redefining built-in 'type' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L191
  184. 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
  185. 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
  186. unused-argument: Unused argument 'line' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L191
  187. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L203
  188. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L223
  189. missing-class-docstring: Missing class docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L232
  190. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L243
  191. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L250
  192. 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
  193. 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
  194. unused-variable: Unused variable 'line' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L255
  195. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L266
  196. 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
  197. 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
  198. use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L305
  199. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L312
  200. 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
  201. 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
  202. 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
  203. docstring-first-line-empty: First line empty in function docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
  204. too-many-locals: Too many local variables (34/25) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
  205. redefined-builtin: Redefining built-in 'max' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L451
  206. 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
  207. 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
  208. 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
  209. 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
  210. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
  211. used-before-assignment: Using variable 'strstart' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L456
  212. used-before-assignment: Using variable 'endprog' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L457
  213. compare-to-zero: Avoid comparisons to zero https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L485
  214. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L489
  215. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L527
  216. while-used: Used while loop https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L552
  217. 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
  218. too-many-nested-blocks: Too many nested blocks (6/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
  219. 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
  220. too-many-nested-blocks: Too many nested blocks (6/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
  221. use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L616
  222. too-many-nested-blocks: Too many nested blocks (6/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
  223. use-set-for-membership: Consider using set for membership test https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L632
  224. too-many-nested-blocks: Too many nested blocks (7/5) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L445
  225. too-many-branches: Too many branches (59/27) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
  226. too-many-statements: Too many statements (177/100) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L409
  227. unused-variable: Unused variable 'indent' https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L677
  228. reimported: Reimport 'sys' (imported line 30) https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L683
  229. consider-using-with: Consider using 'with' for resource-allocating operations https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L686
  230. unspecified-encoding: Using open without explicitly specifying an encoding https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L686
  231. ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L683
  232. 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
  233. 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
  234. 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
  235. 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
  236. 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
  237. 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
  238. 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
  239. 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
  240. 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
  241. 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
  242. 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
  243. 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
  244. 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
  245. 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
  246. 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
  247. unidiomatic-typecheck: Use isinstance() rather than type() for a typecheck. https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L81
  248. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L85
  249. 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
  250. 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
  251. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L89
  252. 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
  253. 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
  254. missing-function-docstring: Missing function or method docstring https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/token.py#L93
  255. 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
  256. 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
  257. 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
The following messages are now emitted:
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L6
  17. ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L9
  18. ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/handle_ipynb_magics.py#L17
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L6
  31. ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L7
  32. ungrouped-imports: Imports from package blib2to3 are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L15
  33. ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/parsing.py#L22
  34. ungrouped-imports: Imports from package blib2to3 are not grouped https://github.com/psf/black.git/blob/main/src/black/numerics.py#L4
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L5
  50. ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L6
  51. ungrouped-imports: Imports from package dataclasses are not grouped https://github.com/psf/black.git/blob/main/src/black/report.py#L4
  52. ungrouped-imports: Imports from package blib2to3 are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L29
  53. ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/nodes.py#L33
  54. ungrouped-imports: Imports from package black are not grouped https://github.com/psf/black.git/blob/main/src/black/report.py#L10
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. ungrouped-imports: Imports from package functools are not grouped https://github.com/psf/black.git/blob/main/src/blackd/init.py#L5
  68. ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/blackd/init.py#L7
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. ungrouped-imports: Imports from package typing are not grouped https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/parse.py#L17
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. ungrouped-imports: Imports from package sys are not grouped https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L23
  97. 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:

  1. unsubscriptable-object: Value 'cls._wrapped_pdb_cls' is unsubscriptable https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L121
  2. unsubscriptable-object: Value 'cls._wrapped_pdb_cls' is unsubscriptable https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L122
  3. 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
  4. import-outside-toplevel: Import outside toplevel (pdb) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L142
  5. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L151
  6. 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
  7. import-private-name: Imported private module (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L152
  8. import-outside-toplevel: Import outside toplevel (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L152
  9. missing-class-docstring: Missing class docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L156
  10. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L160
  11. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L166
  12. compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L168
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L204
  23. 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
  24. 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
  25. 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
  26. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L226
  27. 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
  28. 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
  29. while-used: Used while loop https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L231
  30. import-private-name: Imported private module (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L240
  31. import-outside-toplevel: Import outside toplevel (_pytest.config) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L240
  32. 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
  33. used-before-assignment: Using variable 'CaptureManager' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L243
  34. 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
  35. compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L253
  36. 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
  37. unused-argument: Unused argument 'args' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L238
  38. 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
  39. too-few-public-methods: Too few public methods (1/2) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L94
  40. missing-class-docstring: Missing class docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L285
  41. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L286
  42. no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L286
  43. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L298
  44. 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
  45. no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L298
  46. missing-class-docstring: Missing class docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L303
  47. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L305
  48. no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L305
  49. too-few-public-methods: Too few public methods (1/2) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L303
  50. 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
  51. 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
  52. 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
  53. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L336
  54. 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
  55. 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
  56. redefined-loop-name: Redefining 'content' from loop (line 347) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L355
  57. 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
  58. 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
  59. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L367
  60. import-outside-toplevel: Import outside toplevel (doctest.UnexpectedException) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L368
  61. 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
  62. 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
  63. 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
  64. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L383
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L287
  71. 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
  72. 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
  73. import-error: Unable to import 'atomicwrites' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L306
  74. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L308
  75. 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
  76. 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
  77. 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
  78. 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
  79. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L327
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. broad-except: Catching too general exception Exception https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L405
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L470
  109. broad-except: Catching too general exception Exception https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L476
  110. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L480
  111. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L485
  112. broad-except: Catching too general exception Exception https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L494
  113. 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
  114. 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
  115. undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
  116. undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
  117. undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
  118. undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
  119. undefined-loop-variable: Using possibly undefined loop variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L499
  120. undefined-loop-variable: Using possibly undefined loop variable 'expl' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L502
  121. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L505
  122. 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
  123. 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
  124. 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
  125. 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
  126. 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
  127. 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
  128. compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L586
  129. 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
  130. 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
  131. compare-to-zero: Avoid comparisons to zero https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L700
  132. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
  133. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
  134. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
  135. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
  136. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L709
  137. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L710
  138. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L710
  139. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L712
  140. undefined-loop-variable: Using possibly undefined loop variable 'item' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L712
  141. consider-ternary-expression: Consider rewriting as a ternary expression https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L714
  142. while-used: Used while loop https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L736
  143. 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
  144. unused-variable: Unused variable 'i' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L741
  145. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L759
  146. no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L779
  147. no-self-use: Method could be a function https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L785
  148. 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
  149. too-many-locals: Too many local variables (30/25) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L841
  150. 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
  151. import-outside-toplevel: Import outside toplevel (warnings) https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L851
  152. 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
  153. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L958
  154. 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
  155. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L968
  156. 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
  157. 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
  158. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1003
  159. 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
  160. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1009
  161. 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
  162. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1017
  163. 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
  164. 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
  165. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1041
  166. 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
  167. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1047
  168. 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
  169. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L1057
  170. 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
  171. 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
  172. 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
  173. 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
  174. 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
  175. attribute-defined-outside-init: Attribute 'statements' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L864
  176. attribute-defined-outside-init: Attribute 'statements' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L996
  177. attribute-defined-outside-init: Attribute 'statements' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L997
  178. attribute-defined-outside-init: Attribute 'variables' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L865
  179. 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
  180. 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
  181. attribute-defined-outside-init: Attribute 'stack' defined outside init https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L871
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. 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
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. 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
  218. 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
  219. 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
  220. 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
  221. unused-variable: Unused variable 'tracebackhide' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1692
  222. 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
  223. 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
  224. 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
  225. 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
  226. 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
  227. 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
  228. 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
  229. 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
  230. 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
  231. 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
  232. 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
  233. 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
  234. 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
  235. 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
  236. 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
  237. 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
  238. 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
  239. 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
  240. 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
  241. 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
  242. 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
  243. 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
  244. 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
  245. 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
  246. 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
  247. 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
  248. 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
  249. 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
  250. 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
  251. 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
  252. 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
  253. 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
  254. 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
  255. 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
  256. 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
  257. 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
  258. 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
  259. 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
  260. 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
  261. 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
  262. 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
  263. 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
  264. 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
  265. 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
  266. 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
  267. 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
  268. 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
  269. 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
  270. 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
  271. 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
  272. 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
  273. 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
  274. 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
  275. 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
  276. 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
  277. 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
  278. 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
  279. 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
  280. 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
  281. 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
  282. 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
  283. 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
  284. 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
  285. 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
  286. 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
  287. 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
  288. 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
  289. 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
  290. 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
  291. 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
  292. 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
  293. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L118
  294. 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
  295. 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
  296. 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
  297. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L141
  298. 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
  299. 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
  300. missing-function-docstring: Missing function or method docstring https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L174
  301. 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
  302. 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
  303. 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
  304. 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
  305. 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
  306. 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
  307. 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
  308. 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
  309. 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
  310. 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
  311. 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
  312. 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
  313. 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
  314. 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
  315. 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
  316. 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
  317. 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
  318. 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
  319. 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
  320. 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
  321. 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
  322. 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
  323. 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
  324. 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
The following messages are now emitted:
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. ungrouped-imports: Imports from package sys are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L3
  20. ungrouped-imports: Imports from package typing are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/outcomes.py#L5
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. ungrouped-imports: Imports from package os are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L2
  62. ungrouped-imports: Imports from package sys are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L3
  63. ungrouped-imports: Imports from package typing are not grouped https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L6
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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

github-actions[bot] avatar May 29 '22 02:05 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'iattrs' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/builder.py#L248
  2. used-before-assignment: Using variable 'module' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L163
  3. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  4. used-before-assignment: Using variable 'cls' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/protocols.py#L350
  5. used-before-assignment: Using variable 'boundnode' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/arguments.py#L216
  6. used-before-assignment: Using variable 'path' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/interpreter/_import/spec.py#L179
  7. used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L968
  8. used-before-assignment: Using variable 'default_sep' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L970
  9. 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:

  1. used-before-assignment: Using variable 'f' before assignment https://github.com/psf/black.git/blob/main/src/black/init.py#L915
  2. used-before-assignment: Using variable 'delim' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1065
  3. used-before-assignment: Using variable 'break_idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1291
  4. used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1413
  5. used-before-assignment: Using variable 'idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1760
  6. used-before-assignment: Using variable 'idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1803
  7. used-before-assignment: Using variable 'prev' before assignment https://github.com/psf/black.git/blob/main/src/black/linegen.py#L1160
  8. used-before-assignment: Using variable 'prevp' before assignment https://github.com/psf/black.git/blob/main/src/black/nodes.py#L219
  9. used-before-assignment: Using variable 's' before assignment https://github.com/psf/black.git/blob/main/src/black/report.py#L96
  10. used-before-assignment: Using variable 'new_body' before assignment https://github.com/psf/black.git/blob/main/src/black/strings.py#L206
  11. used-before-assignment: Using variable 'versions' before assignment https://github.com/psf/black.git/blob/main/src/blackd/init.py#L115
  12. used-before-assignment: Using variable 'pyi' before assignment https://github.com/psf/black.git/blob/main/src/blackd/init.py#L116
  13. used-before-assignment: Using variable 'r' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L566
  14. used-before-assignment: Using variable 'r' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L834
  15. used-before-assignment: Using variable 'count' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L834
  16. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L860
  17. used-before-assignment: Using variable 'i' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/literals.py#L44
  18. used-before-assignment: Using variable 'endmatch' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L458
  19. used-before-assignment: Using variable 'newline' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/tokenize.py#L572
  20. used-before-assignment: Using variable 'token' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L106
  21. used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pgen2/driver.py#L180
  22. 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:

  1. used-before-assignment: Using variable 'oldval' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/monkeypatch.py#L261
  2. used-before-assignment: Using variable 'capman' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/debugging.py#L246
  3. used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L701
  4. used-before-assignment: Using variable 'fullwidth' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1052
  5. used-before-assignment: Using variable 'parts' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1262
  6. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1354
  7. used-before-assignment: Using variable 'reason' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1413
  8. used-before-assignment: Using variable 'file_path' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L355
  9. used-before-assignment: Using variable 'func' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L863
  10. used-before-assignment: Using variable 'func' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L902
  11. used-before-assignment: Using variable 'ntraceback' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python.py#L1781
  12. used-before-assignment: Using variable 'formatter' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/logging.py#L606
  13. used-before-assignment: Using variable 'outcome' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/runner.py#L394
  14. used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pytester.py#L701
  15. used-before-assignment: Using variable 'pkginit' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/main.py#L703
  16. used-before-assignment: Using variable 'col' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/main.py#L705
  17. used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/main.py#L892
  18. used-before-assignment: Using variable 'out' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/cacheprovider.py#L218
  19. used-before-assignment: Using variable 'res' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/cacheprovider.py#L223
  20. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L268
  21. used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L632
  22. used-before-assignment: Using variable 'param' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
  23. used-before-assignment: Using variable 'param_index' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
  24. used-before-assignment: Using variable 'node' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L722
  25. used-before-assignment: Using variable 'fixture_result' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L898
  26. used-before-assignment: Using variable 'reporter' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/junitxml.py#L559
  27. used-before-assignment: Using variable 'cls' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python_api.py#L735
  28. used-before-assignment: Using variable 'msg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/python_api.py#L916
  29. used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pathlib.py#L421
  30. used-before-assignment: Using variable 'module_file' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pathlib.py#L542
  31. used-before-assignment: Using variable 'outcome' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L356
  32. used-before-assignment: Using variable 'longrepr' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L357
  33. used-before-assignment: Using variable 'reprfuncargs' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L544
  34. used-before-assignment: Using variable 'reprlocals' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L545
  35. used-before-assignment: Using variable 'reprfileloc' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L546
  36. used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L553
  37. used-before-assignment: Using variable 'exception_info' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/reports.py#L596
  38. used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/mark/expression.py#L142
  39. used-before-assignment: Using variable 'mark' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/mark/structures.py#L72
  40. used-before-assignment: Using variable 'reprcrash' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/_code/code.py#L939
  41. used-before-assignment: Using variable 'i' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/util.py#L247
  42. used-before-assignment: Using variable 'variables' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L925
  43. used-before-assignment: Using variable 'cond' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/assertion/rewrite.py#L982
  44. used-before-assignment: Using variable 'action' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/argparsing.py#L446
  45. used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L675
  46. used-before-assignment: Using variable 'style' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1064
  47. used-before-assignment: Using variable 'value' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/init.py#L1445
  48. used-before-assignment: Using variable 'iniconfig' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L48
  49. used-before-assignment: Using variable 'inipath' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217
  50. used-before-assignment: Using variable 'inicfg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217

github-actions[bot] avatar May 29 '22 02:05 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  2. used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L968
  3. 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:

  1. used-before-assignment: Using variable 'break_idx' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1291
  2. used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black.git/blob/main/src/black/trans.py#L1413
  3. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black.git/blob/main/src/blib2to3/pytree.py#L860
  4. 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:

  1. undefined-variable: Undefined variable 'parts' https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/terminal.py#L1262
  2. used-before-assignment: Using variable 'param' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
  3. used-before-assignment: Using variable 'param_index' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/fixtures.py#L659
  4. used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/pathlib.py#L421
  5. used-before-assignment: Using variable 'mark' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/mark/structures.py#L72
  6. used-before-assignment: Using variable 'inipath' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217
  7. used-before-assignment: Using variable 'inicfg' before assignment https://github.com/pytest-dev/pytest.git/blob/main/src/_pytest/config/findpaths.py#L217

github-actions[bot] avatar May 29 '22 03:05 github-actions[bot]

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.

jacobtylerwalls avatar May 29 '22 03:05 jacobtylerwalls

I'm still in shock about how great the primer bot is. It's like developing pylint in easy mode.

Pierre-Sassoulas avatar May 29 '22 04:05 Pierre-Sassoulas

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'mylineno' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/filter_statements.py#L108
  2. used-before-assignment: Using variable 'lineno' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1037
  3. used-before-assignment: Using variable 'end_lineno' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1039
  4. used-before-assignment: Using variable 'end_col_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1040
  5. used-before-assignment: Using variable 'newnode' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/rebuilder.py#L1783
  6. used-before-assignment: Using variable 'name' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/bases.py#L144
  7. used-before-assignment: Using variable 'package' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/builder.py#L192
  8. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  9. used-before-assignment: Using variable 'mro_pointer' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_builtin_inference.py#L426
  10. used-before-assignment: Using variable 'init_var' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L232
  11. used-before-assignment: Using variable 'assignment_str' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_dataclasses.py#L233
  12. used-before-assignment: Using variable 'alignment' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L222
  13. used-before-assignment: Using variable 'string' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L230
  14. used-before-assignment: Using variable 'broken' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_ng.py#L783
  15. used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
  16. 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
  17. 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:

  1. used-before-assignment: Using variable 'is_stdin' before assignment https://github.com/psf/black/blob/main/src/black/init.py#L625
  2. used-before-assignment: Using variable 'gitignore' before assignment https://github.com/psf/black/blob/main/src/black/init.py#L659
  3. used-before-assignment: Using variable 'orig_quote' before assignment https://github.com/psf/black/blob/main/src/black/strings.py#L186
  4. used-before-assignment: Using variable 'new_quote' before assignment https://github.com/psf/black/blob/main/src/black/strings.py#L191
  5. used-before-assignment: Using variable 'break_idx' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1291
  6. used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
  7. used-before-assignment: Using variable 'reformatted' before assignment https://github.com/psf/black/blob/main/src/black/report.py#L97
  8. used-before-assignment: Using variable 'unchanged' before assignment https://github.com/psf/black/blob/main/src/black/report.py#L102
  9. used-before-assignment: Using variable 'failed' before assignment https://github.com/psf/black/blob/main/src/black/report.py#L105
  10. used-before-assignment: Using variable 'user_config_path' before assignment https://github.com/psf/black/blob/main/src/black/files.py#L133
  11. used-before-assignment: Using variable 'versions' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L115
  12. used-before-assignment: Using variable 'pyi' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L116
  13. used-before-assignment: Using variable 'major_str' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L172
  14. used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
  15. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
  16. used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
  17. used-before-assignment: Using variable 'i' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/literals.py#L44
  18. 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:

  1. used-before-assignment: Using variable 'app' before assignment https://github.com/pallets/flask/blob/main/src/flask/cli.py#L172
  2. used-before-assignment: Using variable 'detail' before assignment https://github.com/pallets/flask/blob/main/src/flask/debughelpers.py#L143
  3. 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:

  1. used-before-assignment: Using variable 'ind' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/hist.py#L199
  2. used-before-assignment: Using variable 'axes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L503
  3. used-before-assignment: Using variable 'norm' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1226
  4. used-before-assignment: Using variable 'it' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1320
  5. used-before-assignment: Using variable 'plotf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1332
  6. used-before-assignment: Using variable 'x' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1334
  7. used-before-assignment: Using variable 'rect' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/core.py#L1674
  8. used-before-assignment: Using variable 'ticklabels' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/boxplot.py#L175
  9. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/boxplot.py#L433
  10. used-before-assignment: Using variable 'min_spacing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L498
  11. used-before-assignment: Using variable 'maj_spacing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L498
  12. used-before-assignment: Using variable 'periodspermonth' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L598
  13. used-before-assignment: Using variable 'periodsperyear' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L688
  14. used-before-assignment: Using variable 'locs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/plotting/_matplotlib/converter.py#L984
  15. used-before-assignment: Using variable 'expected_codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L428
  16. used-before-assignment: Using variable 'expected_uniques' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L430
  17. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L539
  18. used-before-assignment: Using variable 'uniques' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/test_algos.py#L540
  19. used-before-assignment: Using variable 'new_index_cls' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/common.py#L632
  20. 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
  21. 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
  22. 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
  23. used-before-assignment: Using variable 'err' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/numeric/test_indexing.py#L51
  24. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexes/numeric/test_indexing.py#L51
  25. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
  26. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
  27. used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_numba.py#L268
  28. used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_numba.py#L304
  29. used-before-assignment: Using variable 'retval' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling_quantile.py#L33
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/tools/test_to_numeric.py#L330
  38. 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
  39. 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
  40. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_indexing.py#L217
  41. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_indexing.py#L217
  42. used-before-assignment: Using variable 'expected_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_apply.py#L880
  43. used-before-assignment: Using variable 'gb2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2416
  44. used-before-assignment: Using variable 'exp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2417
  45. used-before-assignment: Using variable 'columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2629
  46. used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/test_groupby.py#L2629
  47. used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L217
  48. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L217
  49. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L226
  50. 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
  51. used-before-assignment: Using variable 'keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L938
  52. used-before-assignment: Using variable 'error' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/aggregate/test_aggregate.py#L221
  53. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/aggregate/test_aggregate.py#L221
  54. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
  55. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/masked_shared.py#L48
  56. used-before-assignment: Using variable 'warn1' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/period/test_astype.py#L25
  57. 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
  58. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/string_/test_string.py#L322
  59. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/test_arithmetic.py#L752
  60. 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
  61. 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
  62. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/apply/test_frame_transform.py#L79
  63. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/resample/test_period_index.py#L59
  64. used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/resample/test_resample_api.py#L881
  65. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/resample/test_resample_api.py#L881
  66. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_arithmetic.py#L1111
  67. used-before-assignment: Using variable 'skipna_wrapper' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_reductions.py#L114
  68. used-before-assignment: Using variable 'warn' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_reductions.py#L1885
  69. used-before-assignment: Using variable 'dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L161
  70. used-before-assignment: Using variable 'scalar_type' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L167
  71. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
  72. 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
  73. 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
  74. 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
  75. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L37
  76. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L165
  77. used-before-assignment: Using variable 'indices' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L165
  78. used-before-assignment: Using variable 'columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_compare.py#L165
  79. used-before-assignment: Using variable 'regex' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/methods/test_replace.py#L1537
  80. 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
  81. used-before-assignment: Using variable 'frame' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/indexing/test_getitem.py#L140
  82. used-before-assignment: Using variable 'missing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/indexing/test_getitem.py#L155
  83. used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/list/array.py#L104
  84. used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/json/array.py#L188
  85. used-before-assignment: Using variable 'compare' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/base/methods.py#L334
  86. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/base/methods.py#L334
  87. used-before-assignment: Using variable 'kind' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/test_inference.py#L949
  88. used-before-assignment: Using variable 'itemsize' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/dtypes/test_inference.py#L949
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. used-before-assignment: Using variable 'ts' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arithmetic/test_timedelta64.py#L1015
  98. used-before-assignment: Using variable 'err' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/test_indexing.py#L136
  99. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/test_indexing.py#L136
  100. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/test_iloc.py#L102
  101. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/multiindex/test_loc.py#L351
  102. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_find_replace.py#L753
  103. used-before-assignment: Using variable 'empty_int' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_strings.py#L184
  104. used-before-assignment: Using variable 'empty_bool' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_strings.py#L189
  105. used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
  106. used-before-assignment: Using variable 'error' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/interval/test_interval.py#L274
  107. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/scalar/interval/test_interval.py#L274
  108. 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
  109. 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
  110. used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
  111. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
  112. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1914
  113. used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_compression.py#L122
  114. used-before-assignment: Using variable 'url' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/conftest.py#L51
  115. used-before-assignment: Using variable 'err' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L415
  116. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L415
  117. used-before-assignment: Using variable 'content' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L565
  118. used-before-assignment: Using variable 'reader' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_common.py#L569
  119. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
  120. 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
  121. 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
  122. 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
  123. used-before-assignment: Using variable 'error' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_readers.py#L756
  124. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_readers.py#L756
  125. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L322
  126. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L365
  127. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L381
  128. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_header.py#L466
  129. used-before-assignment: Using variable 'val' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_converters.py#L139
  130. 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
  131. 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
  132. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L51
  133. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L118
  134. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L138
  135. 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
  136. 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
  137. 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
  138. 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
  139. used-before-assignment: Using variable 'klass' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/util/test_deprecate_kwarg.py#L89
  140. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/util/test_deprecate_kwarg.py#L90
  141. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L776
  142. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L814
  143. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L840
  144. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L879
  145. used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
  146. used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
  147. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L958
  148. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_qcut.py#L211
  149. used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L226
  150. used-before-assignment: Using variable 'typ' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L226
  151. used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L381
  152. used-before-assignment: Using variable 'typ' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L381
  153. used-before-assignment: Using variable 'arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L409
  154. used-before-assignment: Using variable 'typ' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/test_get_dummies.py#L409
  155. 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
  156. 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
  157. 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
  158. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/reshape/merge/test_multi.py#L500
  159. 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
  160. used-before-assignment: Using variable 'ngroups' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/sorting.py#L301
  161. used-before-assignment: Using variable 'map_f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/base.py#L882
  162. used-before-assignment: Using variable 'shape' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/construction.py#L820
  163. used-before-assignment: Using variable 'name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L526
  164. used-before-assignment: Using variable 'mapped' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/apply.py#L1146
  165. used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
  166. used-before-assignment: Using variable 'new_y' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L537
  167. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L789
  168. used-before-assignment: Using variable 'count' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L1201
  169. used-before-assignment: Using variable 'count' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L1289
  170. used-before-assignment: Using variable 'null_mask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L1470
  171. used-before-assignment: Using variable 'level' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L586
  172. used-before-assignment: Using variable 'key' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L589
  173. used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L3797
  174. used-before-assignment: Using variable 'new_axis' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L4290
  175. used-before-assignment: Using variable 'threshold_inf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L7457
  176. used-before-assignment: Using variable 'vslicer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L9623
  177. used-before-assignment: Using variable 'islicer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L9624
  178. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/generic.py#L10449
  179. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L2443
  180. used-before-assignment: Using variable 'name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L2469
  181. used-before-assignment: Using variable 'names' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L2492
  182. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L3461
  183. used-before-assignment: Using variable 'icol' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L3949
  184. used-before-assignment: Using variable 'iindex' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L3949
  185. used-before-assignment: Using variable 'ndf' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10236
  186. used-before-assignment: Using variable 'correl' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10294
  187. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10521
  188. used-before-assignment: Using variable 'ufunc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/frame.py#L10625
  189. used-before-assignment: Using variable 'values' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L524
  190. used-before-assignment: Using variable 'loc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L1229
  191. used-before-assignment: Using variable 'lmask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L5464
  192. used-before-assignment: Using variable 'rmask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L5464
  193. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L5494
  194. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1424
  195. used-before-assignment: Using variable 'ordered' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1727
  196. used-before-assignment: Using variable 'new_codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1766
  197. used-before-assignment: Using variable 'top' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/describe.py#L270
  198. used-before-assignment: Using variable 'freq' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/describe.py#L270
  199. used-before-assignment: Using variable 'dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/describe.py#L274
  200. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L1032
  201. used-before-assignment: Using variable 'missing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3400
  202. used-before-assignment: Using variable 'tgt_values' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3980
  203. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L3982
  204. used-before-assignment: Using variable 'diff' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4174
  205. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4302
  206. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L4450
  207. used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
  208. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L6078
  209. used-before-assignment: Using variable 'time_micros' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimes.py#L823
  210. used-before-assignment: Using variable 'lop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimes.py#L872
  211. used-before-assignment: Using variable 'rop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimes.py#L872
  212. used-before-assignment: Using variable 'key_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/interval.py#L570
  213. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/datetimelike.py#L494
  214. used-before-assignment: Using variable 'new_levels' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L817
  215. used-before-assignment: Using variable 'idx_names' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L1809
  216. used-before-assignment: Using variable 'start' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
  217. used-before-assignment: Using variable 'stop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
  218. used-before-assignment: Using variable 'new_indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L3188
  219. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/category.py#L425
  220. used-before-assignment: Using variable 'missing' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/category.py#L431
  221. used-before-assignment: Using variable 'start' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/range.py#L412
  222. used-before-assignment: Using variable 'step' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/range.py#L413
  223. used-before-assignment: Using variable 'stop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/range.py#L413
  224. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/construction.py#L818
  225. used-before-assignment: Using variable 'block' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L319
  226. used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L342
  227. used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L359
  228. used-before-assignment: Using variable 'new_axes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L544
  229. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
  230. used-before-assignment: Using variable 'columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1036
  231. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1037
  232. used-before-assignment: Using variable 'allow_fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1109
  233. used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L1114
  234. used-before-assignment: Using variable 'm' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/blocks.py#L731
  235. used-before-assignment: Using variable 'allow_fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/blocks.py#L867
  236. used-before-assignment: Using variable 'noop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/blocks.py#L1164
  237. used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L326
  238. used-before-assignment: Using variable 'align_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L352
  239. used-before-assignment: Using variable 'new_axes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L568
  240. used-before-assignment: Using variable 'blknos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L755
  241. used-before-assignment: Using variable 'blklocs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L783
  242. used-before-assignment: Using variable 'new_mgr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L1386
  243. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L1386
  244. used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/managers.py#L1487
  245. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/concat.py#L103
  246. used-before-assignment: Using variable 'last_value' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/ewm.py#L1050
  247. used-before-assignment: Using variable 'np_array' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/ewm.py#L1063
  248. used-before-assignment: Using variable 'result_from' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/ewm.py#L1070
  249. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/window/rolling.py#L1978
  250. used-before-assignment: Using variable 'op_result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L634
  251. used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
  252. used-before-assignment: Using variable 'single' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L181
  253. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L484
  254. used-before-assignment: Using variable 'sorter' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L665
  255. used-before-assignment: Using variable 'llab' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L674
  256. used-before-assignment: Using variable 'acc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L709
  257. used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L1124
  258. used-before-assignment: Using variable 'keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/generic.py#L1783
  259. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L1674
  260. used-before-assignment: Using variable 'filtered' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L1837
  261. used-before-assignment: Using variable 'grouper' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L3098
  262. used-before-assignment: Using variable 'shaped_labels' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L3237
  263. used-before-assignment: Using variable 'sample_size' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4186
  264. used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
  265. used-before-assignment: Using variable 'mi' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4270
  266. used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/base.py#L864
  267. used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/base.py#L864
  268. used-before-assignment: Using variable 'codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L637
  269. used-before-assignment: Using variable 'codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L971
  270. used-before-assignment: Using variable 'count' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L1658
  271. used-before-assignment: Using variable 'codes' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L2842
  272. used-before-assignment: Using variable 'categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/categorical.py#L2842
  273. used-before-assignment: Using variable 'lhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L596
  274. used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L597
  275. used-before-assignment: Using variable 'obj' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L838
  276. used-before-assignment: Using variable 'obj' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L855
  277. used-before-assignment: Using variable 'empty' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1023
  278. used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1028
  279. used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1028
  280. used-before-assignment: Using variable 'summary' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1214
  281. used-before-assignment: Using variable 'new_left' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1713
  282. used-before-assignment: Using variable 'new_right' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L1713
  283. used-before-assignment: Using variable 'base' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/period.py#L515
  284. used-before-assignment: Using variable 'dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L214
  285. used-before-assignment: Using variable 'opname' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L235
  286. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
  287. used-before-assignment: Using variable 'fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
  288. used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L820
  289. used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L820
  290. used-before-assignment: Using variable 'mask' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L906
  291. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L1222
  292. used-before-assignment: Using variable 'res_values' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/ops/invalid.py#L35
  293. used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L519
  294. used-before-assignment: Using variable 'row_needs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L543
  295. used-before-assignment: Using variable 'col_needs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L545
  296. used-before-assignment: Using variable 'needs_masking' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/array_algos/take.py#L577
  297. used-before-assignment: Using variable 'f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/accessor.py#L1877
  298. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/accessor.py#L2604
  299. used-before-assignment: Using variable 'name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/accessor.py#L2604
  300. used-before-assignment: Using variable 'f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/object_array.py#L131
  301. used-before-assignment: Using variable 'f' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/strings/object_array.py#L165
  302. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
  303. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/ops.py#L461
  304. used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
  305. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
  306. used-before-assignment: Using variable 'values_multi' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L241
  307. used-before-assignment: Using variable 'row_margin' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L308
  308. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L308
  309. used-before-assignment: Using variable 'margin_keys' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L310
  310. used-before-assignment: Using variable 'kwargs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/pivot.py#L677
  311. used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L171
  312. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L326
  313. used-before-assignment: Using variable 'rvals' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L909
  314. used-before-assignment: Using variable 'lvals' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L916
  315. used-before-assignment: Using variable 'key_col' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L924
  316. used-before-assignment: Using variable 'result_dtype' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L924
  317. used-before-assignment: Using variable 'idx' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L1606
  318. used-before-assignment: Using variable 'indexer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L1612
  319. used-before-assignment: Using variable 'adjust' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/tile.py#L585
  320. used-before-assignment: Using variable 'concat_axis' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/concat.py#L696
  321. used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/_testing/init.py#L646
  322. used-before-assignment: Using variable 'module_to_get' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/compat/_optional.py#L154
  323. used-before-assignment: Using variable 'r' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/html.py#L751
  324. used-before-assignment: Using variable 'where' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L1961
  325. used-before-assignment: Using variable 'col_name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L2428
  326. used-before-assignment: Using variable 'converted' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L2497
  327. used-before-assignment: Using variable 'kind' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L2558
  328. used-before-assignment: Using variable 'table_exists' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L3884
  329. used-before-assignment: Using variable 'nrows' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L4473
  330. used-before-assignment: Using variable 'cols_' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L4600
  331. used-before-assignment: Using variable 'index_' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/pytables.py#L4600
  332. used-before-assignment: Using variable 'conv_dates' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L481
  333. used-before-assignment: Using variable 'v_o' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1604
  334. used-before-assignment: Using variable 'initial_categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1918
  335. used-before-assignment: Using variable 'max_str_len' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L2149
  336. used-before-assignment: Using variable 'end_a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/html.py#L192
  337. used-before-assignment: Using variable 'terminal_width' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/console.py#L46
  338. used-before-assignment: Using variable 'terminal_height' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/console.py#L46
  339. used-before-assignment: Using variable 'nrows' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/string.py#L147
  340. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
  341. used-before-assignment: Using variable 'axis_apply' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3555
  342. used-before-assignment: Using variable 'q' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3558
  343. used-before-assignment: Using variable 'head' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L400
  344. used-before-assignment: Using variable 'tail' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L400
  345. used-before-assignment: Using variable 'space2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L417
  346. used-before-assignment: Using variable 'space1' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/printing.py#L452
  347. used-before-assignment: Using variable 'str_columns' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/format.py#L868
  348. used-before-assignment: Using variable 'created_buffer' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/format.py#L1184
  349. used-before-assignment: Using variable 'coloffset' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/excel.py#L734
  350. used-before-assignment: Using variable 'obj' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/json/_json.py#L760
  351. used-before-assignment: Using variable 'style' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_xlwt.py#L215
  352. undefined-variable: Undefined variable 'header_rows' https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_base.py#L653
  353. used-before-assignment: Using variable 'xlrd_version' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_base.py#L1576
  354. used-before-assignment: Using variable 'i' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/excel/_util.py#L303
  355. used-before-assignment: Using variable 'processor' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/sas/sas7bdat.py#L521
  356. 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
  357. 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
  358. used-before-assignment: Using variable 'index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/base_parser.py#L1049
  359. used-before-assignment: Using variable 'engine_specified' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1387
  360. used-before-assignment: Using variable 'df' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1772
  361. used-before-assignment: Using variable 'regex' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/python_parser.py#L173
  362. used-before-assignment: Using variable 'index_name' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/python_parser.py#L964
  363. used-before-assignment: Using variable 'new_pos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/python_parser.py#L1080
  364. 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
  365. used-before-assignment: Using variable 'allow_args' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/_decorators.py#L302
  366. used-before-assignment: Using variable 'hcells' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/_doctools.py#L44
  367. used-before-assignment: Using variable 'vcells' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/_doctools.py#L44
  368. used-before-assignment: Using variable '_post' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
  369. used-before-assignment: Using variable '_dev' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
  370. 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:

  1. used-before-assignment: Using variable 'hp' before assignment https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/_dns.py#L256
  2. used-before-ass...

This comment was truncated because GitHub allows only 65536 characters in a comment.

This comment was generated for commit dcfb322391ec318603402c47605167875b7724df

github-actions[bot] avatar Jun 10 '22 04:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  2. used-before-assignment: Using variable 'mro_pointer' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_builtin_inference.py#L426
  3. used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
  4. 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:

  1. used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
  2. used-before-assignment: Using variable 'versions' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L115
  3. used-before-assignment: Using variable 'pyi' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L116
  4. used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
  5. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
  6. used-before-assignment: Using variable '_prefix' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pgen2/driver.py#L180
  7. 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:

  1. 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:

  1. 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
  2. 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
  3. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
  4. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
  5. used-before-assignment: Using variable 'expected' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/groupby/transform/test_transform.py#L226
  6. 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
  7. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
  8. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/series/test_arithmetic.py#L752
  9. 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
  10. 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
  11. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
  12. 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
  13. 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
  14. 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
  15. used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/list/array.py#L104
  16. used-before-assignment: Using variable 'output' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/extension/json/array.py#L188
  17. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/indexing/multiindex/test_loc.py#L351
  18. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_find_replace.py#L753
  19. used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
  20. 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
  21. 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
  22. used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
  23. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
  24. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1914
  25. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
  26. 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
  27. 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
  28. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L322
  29. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L365
  30. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/excel/test_openpyxl.py#L381
  31. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_header.py#L466
  32. 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
  33. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L51
  34. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L118
  35. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/parser/test_compression.py#L138
  36. 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
  37. 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
  38. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L776
  39. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L814
  40. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L840
  41. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L879
  42. used-before-assignment: Using variable 'a' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
  43. used-before-assignment: Using variable 'b' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L911
  44. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/computation/test_eval.py#L958
  45. used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
  46. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/nanops.py#L789
  47. used-before-assignment: Using variable 'loc' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L1229
  48. used-before-assignment: Using variable 'ordered' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/algorithms.py#L1727
  49. used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
  50. used-before-assignment: Using variable 'start' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
  51. used-before-assignment: Using variable 'stop' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/multi.py#L2934
  52. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
  53. used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
  54. used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
  55. used-before-assignment: Using variable 'lhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L596
  56. used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/interval.py#L597
  57. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
  58. used-before-assignment: Using variable 'fill' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/arrays/sparse/array.py#L252
  59. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
  60. used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
  61. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
  62. used-before-assignment: Using variable 'rhs' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/reshape/merge.py#L171
  63. used-before-assignment: Using variable 'r' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/html.py#L751
  64. used-before-assignment: Using variable 'initial_categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1918
  65. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
  66. used-before-assignment: Using variable 'axis_apply' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3555
  67. used-before-assignment: Using variable 'processor' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/sas/sas7bdat.py#L521
  68. used-before-assignment: Using variable 'df' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/parsers/readers.py#L1772
  69. used-before-assignment: Using variable '_post' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
  70. used-before-assignment: Using variable '_dev' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
  71. 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:

  1. 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:

  1. 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:

  1. used-before-assignment: Using variable 'formatter' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/logging.py#L606
  2. used-before-assignment: Using variable 'capman' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/debugging.py#L246
  3. used-before-assignment: Using variable 'module' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/doctest.py#L561
  4. used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/pytester.py#L701
  5. used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/pytester.py#L1429
  6. used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
  7. used-before-assignment: Using variable 'exception_info' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L596
  8. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
  9. used-before-assignment: Using variable 'fixture_result' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L893
  10. used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/expression.py#L139
  11. used-before-assignment: Using variable 'mark' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/structures.py#L72
  12. used-before-assignment: Using variable 'fields_to_check' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/assertion/util.py#L455
  13. used-before-assignment: Using variable 'reprcrash' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/_code/code.py#L939
  14. used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
  15. used-before-assignment: Using variable 'style' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L1064
  16. used-before-assignment: Using variable 'value' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L1445
  17. 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:

  1. used-before-assignment: Using variable 'sso_is_valid' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/auth/access.py#L82
  2. used-before-assignment: Using variable 'discriminator' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/duplex.py#L554
  3. used-before-assignment: Using variable 'project_ids' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/metrics.py#L596
  4. used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
  5. 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
  6. used-before-assignment: Using variable 'default_user_id' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/receivers/onboarding.py#L79
  7. used-before-assignment: Using variable 'default_user_id' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/receivers/onboarding.py#L421
  8. used-before-assignment: Using variable 'parsed_hostname' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/utils/http.py#L173
  9. used-before-assignment: Using variable 'result' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/utils/safe.py#L44
  10. used-before-assignment: Using variable 'body' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L769
  11. used-before-assignment: Using variable 'port' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/runner/commands/run.py#L30
  12. used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
  13. used-before-assignment: Using variable 'keys' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py#L84
  14. used-before-assignment: Using variable 'stacktrace_variants' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/grouping/strategies/newstyle.py#L629
  15. used-before-assignment: Using variable 'results' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/base.py#L365
  16. used-before-assignment: Using variable 'stat_model' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/endpoints/project_stats.py#L64
  17. used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/user.py#L189
  18. used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/team.py#L238
  19. used-before-assignment: Using variable 'releasefile' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/releasefile.py#L306
  20. used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
  21. used-before-assignment: Using variable 'is_member' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/project.py#L331
  22. 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

github-actions[bot] avatar Jun 10 '22 05:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  2. used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
  3. 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:

  1. used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
  2. used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
  3. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
  4. 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:

  1. 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
  2. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
  3. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
  4. 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
  5. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
  6. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
  7. 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
  8. 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
  9. used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
  10. used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
  11. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
  12. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
  13. 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
  14. 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
  15. 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
  16. used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
  17. used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
  18. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
  19. used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
  20. used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
  21. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
  22. used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
  23. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
  24. used-before-assignment: Using variable 'initial_categories' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/stata.py#L1918
  25. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L1752
  26. used-before-assignment: Using variable 'axis_apply' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/io/formats/style.py#L3555
  27. used-before-assignment: Using variable '_post' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
  28. used-before-assignment: Using variable '_dev' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/util/version/init.py#L579
  29. 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:

  1. 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:

  1. used-before-assignment: Using variable 'formatter' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/logging.py#L606
  2. used-before-assignment: Using variable 'capman' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/debugging.py#L246
  3. used-before-assignment: Using variable 'name' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/pytester.py#L701
  4. used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
  5. used-before-assignment: Using variable 'exception_info' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L596
  6. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
  7. used-before-assignment: Using variable 'ret' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/expression.py#L139
  8. used-before-assignment: Using variable 'fields_to_check' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/assertion/util.py#L455
  9. used-before-assignment: Using variable 'reprcrash' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/_code/code.py#L939
  10. used-before-assignment: Using variable 'parg' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L675
  11. used-before-assignment: Using variable 'style' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/config/init.py#L1064
  12. 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:

  1. used-before-assignment: Using variable 'discriminator' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/duplex.py#L554
  2. used-before-assignment: Using variable 'project_ids' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/release_health/metrics.py#L596
  3. used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
  4. used-before-assignment: Using variable 'port' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/runner/commands/run.py#L30
  5. used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
  6. used-before-assignment: Using variable 'keys' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py#L84
  7. used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/user.py#L189
  8. used-before-assignment: Using variable 'avatar' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/api/serializers/models/team.py#L238
  9. used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
  10. 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

github-actions[bot] avatar Jun 10 '22 15:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  2. used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
  3. 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:

  1. used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
  2. used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
  3. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
  4. 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:

  1. 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
  2. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
  3. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
  4. 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
  5. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
  6. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
  7. 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
  8. 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
  9. used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
  10. used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
  11. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
  12. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
  13. 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
  14. 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
  15. 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
  16. used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
  17. used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
  18. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
  19. used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
  20. used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
  21. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
  22. used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
  23. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
  24. 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:

  1. 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:

  1. used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
  2. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
  3. used-before-assignment: Using variable 'fields_to_check' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/assertion/util.py#L455
  4. 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:

  1. used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
  2. used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
  3. used-before-assignment: Using variable 'keys' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py#L84
  4. used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
  5. 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

github-actions[bot] avatar Jun 11 '22 00:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  2. used-before-assignment: Using variable 'default_offset' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L971
  3. 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:

  1. used-before-assignment: Using variable 'end' before assignment https://github.com/psf/black/blob/main/src/black/trans.py#L1413
  2. used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
  3. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
  4. 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:

  1. 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
  2. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
  3. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
  4. 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
  5. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
  6. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
  7. 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
  8. 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
  9. used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
  10. used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
  11. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
  12. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
  13. 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
  14. 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
  15. 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
  16. used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
  17. used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
  18. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
  19. used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
  20. used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
  21. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
  22. used-before-assignment: Using variable 'string_end' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/parsing.py#L164
  23. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
  24. 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:

  1. 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:

  1. used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
  2. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
  3. 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:

  1. used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
  2. used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
  3. used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
  4. 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

github-actions[bot] avatar Jun 11 '22 01:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  2. 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:

  1. used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
  2. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
  3. 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:

  1. 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
  2. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
  3. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
  4. 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
  5. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
  6. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
  7. 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
  8. 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
  9. used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
  10. used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
  11. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
  12. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
  13. 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
  14. 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
  15. 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
  16. used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
  17. used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
  18. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
  19. used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
  20. used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4188
  21. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L155
  22. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
  23. 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:

  1. used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
  2. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
  3. 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:

  1. used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
  2. used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1437
  3. used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
  4. 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

github-actions[bot] avatar Jun 11 '22 02:06 github-actions[bot]

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)

jacobtylerwalls avatar Jun 12 '22 18:06 jacobtylerwalls

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid: The following messages are now emitted:

  1. used-before-assignment: Using variable 'old_cwd' before assignment https://github.com/PyCQA/astroid/blob/main/astroid/manager.py#L218
  2. 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:

  1. used-before-assignment: Using variable 'rest' before assignment https://github.com/psf/black/blob/main/src/blackd/init.py#L175
  2. used-before-assignment: Using variable 'save_stderr' before assignment https://github.com/psf/black/blob/main/src/blib2to3/pytree.py#L860
  3. 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:

  1. 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
  2. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_expanding.py#L289
  3. used-before-assignment: Using variable 'ser' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/window/test_rolling.py#L1658
  4. 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
  5. used-before-assignment: Using variable 'data' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/arrays/test_datetimelike.py#L1425
  6. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/frame/test_constructors.py#L343
  7. 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
  8. 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
  9. used-before-assignment: Using variable 'raises' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/strings/test_api.py#L96
  10. used-before-assignment: Using variable 'df2' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_gcs.py#L91
  11. used-before-assignment: Using variable 'fp' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/test_stata.py#L1893
  12. used-before-assignment: Using variable 'result' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/tests/io/formats/test_format.py#L91
  13. 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
  14. 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
  15. 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
  16. used-before-assignment: Using variable 'idxpos' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/missing.py#L202
  17. used-before-assignment: Using variable 'join_index' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/indexes/base.py#L5042
  18. used-before-assignment: Using variable 'arrays' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/internals/array_manager.py#L790
  19. used-before-assignment: Using variable 'null_gaps' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/ops.py#L859
  20. used-before-assignment: Using variable 'weights_arr' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/groupby/groupby.py#L4196
  21. used-before-assignment: Using variable 'res' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/pytables.py#L153
  22. used-before-assignment: Using variable 'msg' before assignment https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/eval.py#L163
  23. 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:

  1. used-before-assignment: Using variable 'reprentry' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/reports.py#L553
  2. used-before-assignment: Using variable 'key' before assignment https://github.com/pytest-dev/pytest/blob/main/src/_pytest/fixtures.py#L263
  3. 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:

  1. used-before-assignment: Using variable 'value' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/integrations/jira/integration.py#L405
  2. used-before-assignment: Using variable 'alias' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/search/events/builder.py#L1449
  3. used-before-assignment: Using variable 'statement_timeout' before assignment https://github.com/getsentry/sentry/blob/master/src/sentry/models/counter.py#L74
  4. 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

github-actions[bot] avatar Jun 14 '22 16:06 github-actions[bot]

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 3b97e78da4616b9673f4817a1464305e898d05d2

github-actions[bot] avatar Jun 14 '22 17:06 github-actions[bot]

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.

jacobtylerwalls avatar Jun 16 '22 21:06 jacobtylerwalls

🤖 Effect of this PR on checked open source code: 🤖

Effect on pandas: The following messages are now emitted:

  1. 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

github-actions[bot] avatar Jun 16 '22 21:06 github-actions[bot]

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 24d384c7cb38467ec0bad29792ecad37d0445664

github-actions[bot] avatar Jun 24 '22 01:06 github-actions[bot]

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit a6eadd4c5e1afdc6d7f91e6ba4aa2c74395b9aa5

github-actions[bot] avatar Jun 28 '22 01:06 github-actions[bot]

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit 0f51b9775ed53249a9885fd462f79eeab61c519e

github-actions[bot] avatar Jun 28 '22 01:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on pandas: The following messages are now emitted:

  1. 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

github-actions[bot] avatar Jun 30 '22 00:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on pandas: The following messages are now emitted:

  1. 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

github-actions[bot] avatar Jun 30 '22 05:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on pandas: The following messages are now emitted:

  1. 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

github-actions[bot] avatar Jun 30 '22 20:06 github-actions[bot]

🤖 Effect of this PR on checked open source code: 🤖

Effect on pandas: The following messages are now emitted:

  1. 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

github-actions[bot] avatar Jul 17 '22 22:07 github-actions[bot]

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.

jacobtylerwalls avatar Nov 20 '22 14:11 jacobtylerwalls