Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename broad-except and new check broad-exception-raised #7709

Merged
merged 8 commits into from
Nov 5, 2022

Conversation

clavedeluna
Copy link
Collaborator

@clavedeluna clavedeluna commented Nov 4, 2022

Type of Changes

Type
✨ New feature

Description

This PR renames broad-except to broad-exception-caught:

    except Exception:  # [broad-except]
        pass

becomes

    except Exception:  # [broad-exception-caught]
        pass

and adds a new checker, broad-exception-raised

Closes #7494

@coveralls
Copy link

coveralls commented Nov 4, 2022

Pull Request Test Coverage Report for Build 3400111474

  • 3 of 5 (60.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.0005%) to 95.38%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pylint/pyreverse/vcg_printer.py 0 2 0.0%
Totals Coverage Status
Change from base Build 3400051011: 0.0005%
Covered Lines: 17239
Relevant Lines: 18074

💛 - Coveralls

@github-actions

This comment has been minimized.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good and polished at first glance 👌

pylint/checkers/exceptions.py Show resolved Hide resolved
@Pierre-Sassoulas Pierre-Sassoulas added the Enhancement ✨ Improvement to a component label Nov 4, 2022
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.16.0 milestone Nov 4, 2022
@clavedeluna
Copy link
Collaborator Author

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

Effect on astroid: The following messages are now emitted:

The following messages are no longer emitted:

Effect on black: The following messages are now emitted:

The following messages are no longer emitted:

Effect on django: The following messages are now emitted:

The following messages are no longer emitted:

Effect on flask: The following messages are now emitted:

The following messages are no longer emitted:

Effect on pandas: The following messages are now emitted:

The following messages are no longer emitted:

Effect on psycopg: The following messages are now emitted:

The following messages are no longer emitted:

Effect on pygame: The following messages are now emitted:

The following messages are no longer emitted:

Effect on pytest: The following messages are now emitted:

results look reasonable, my question about the broad-except deprecation, is will repos that do this

    except Exception:  # pylint: disable=broad-except

or other forms of disabling broad-except, now need to change the disable to disable=broad-exception-caught? or will old_names handle this?

@clavedeluna clavedeluna marked this pull request as ready for review November 4, 2022 16:16
@clavedeluna clavedeluna changed the title rename broad-except and new check broad-exception-raised rename broad-except and new check broad-exception-raised Nov 4, 2022
@clavedeluna clavedeluna requested review from Pierre-Sassoulas and removed request for DudeNr33 and cdce8p November 4, 2022 16:20
@Pierre-Sassoulas
Copy link
Member

or will old_names handle this?

That's the use case for old_names :)

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good apart for the unrelated confidence change :) We also probably need to regenerate the doc following the removal of a message (tox -e docs or cd doc;make build)

"raising-bad-type",
node=self._node,
args="tuple",
confidence=INFERENCE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why inference and not high? Also it should be done in another MR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in a sep commit but np, I can split that out. Also, I'm pretty sure I traced all the code / funcs that received inference results, but I could of course have made a mistake. Can move it to a sep PR for discussion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you !

@github-actions

This comment has been minimized.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized there were too much issue with the doc right now (because of #6736 being blocked) and created a MR to fix it (#7711). I'm going to review again when the other branch is merged and this one is rebased on it.

@Pierre-Sassoulas Pierre-Sassoulas added Blocked 🚧 Blocked by a particular issue and removed Blocked 🚧 Blocked by a particular issue labels Nov 4, 2022
doc/data/messages/b/broad-exception-raised/good.py Outdated Show resolved Hide resolved
@@ -0,0 +1 @@
You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's still a problem here following resolution of conflict for the merge of main I just did. This new file should not exists. Would you mind rebasing on main and cleaning up the doc generation commit by doing a partial add of only the broad-except-x related changes ? Sorry for the mess, we did not have time to fix #6736 yet or this would not be a problem.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, I think the latest looks most accurate, let's see how CI reacts

@github-actions

This comment has been minimized.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty clean check and refactor, thank you 👌

@Pierre-Sassoulas Pierre-Sassoulas enabled auto-merge (squash) November 5, 2022 12:47
@Pierre-Sassoulas Pierre-Sassoulas merged commit 3c180df into pylint-dev:main Nov 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2022

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

Effect on astroid:
The following messages are now emitted:

  1. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/raw_building.py#L330
  2. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 330)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/raw_building.py#L330
  3. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L46
  4. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L265
  5. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 46)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L46
  6. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 265)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L265
  7. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/protocols.py#L140
  8. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 140)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/protocols.py#L140
  9. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/decorators.py#L190
  10. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/decorators.py#L244
  11. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/nodes/as_string.py#L588
  12. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/nodes/as_string.py#L617
  13. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L76
  14. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L190
  15. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L240
  16. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 76)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L76
  17. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 190)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L190
  18. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 240)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L240

The following messages are no longer emitted:

  1. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/raw_building.py#L330
  2. suppressed-message:
    Suppressed 'broad-except' (from line 330)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/raw_building.py#L330
  3. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L46
  4. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L265
  5. suppressed-message:
    Suppressed 'broad-except' (from line 46)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L46
  6. suppressed-message:
    Suppressed 'broad-except' (from line 265)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/manager.py#L265
  7. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/protocols.py#L140
  8. suppressed-message:
    Suppressed 'broad-except' (from line 140)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/protocols.py#L140
  9. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L76
  10. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L190
  11. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L240
  12. suppressed-message:
    Suppressed 'broad-except' (from line 76)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L76
  13. suppressed-message:
    Suppressed 'broad-except' (from line 190)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L190
  14. suppressed-message:
    Suppressed 'broad-except' (from line 240)
    https://github.com/PyCQA/astroid/blob/4acf5785c54f4ccb8f41402991f6ddc5d8b28b89/astroid/brain/brain_gi.py#L240

Effect on black:
The following messages are now emitted:

  1. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/__init__.py#L728
  2. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/__init__.py#L782
  3. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/blackd/__init__.py#L181

The following messages are no longer emitted:

  1. broad-except:
    Catching too general exception Exception
    https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/__init__.py#L728
  2. broad-except:
    Catching too general exception Exception
    https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/black/__init__.py#L782
  3. broad-except:
    Catching too general exception Exception
    https://github.com/psf/black/blob/0e9d29ab73d608a79028e22a713ee717b5dcca96/src/blackd/__init__.py#L181

Effect on django:
The following messages are now emitted:

  1. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/autoreload.py#L338
  2. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/autoreload.py#L565
  3. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/log.py#L106
  4. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/http.py#L156
  5. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/module_loading.py#L59
  6. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/encoding.py#L259
  7. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/defaultfilters.py#L735
  8. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/defaultfilters.py#L977
  9. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/smartif.py#L61
  10. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/smartif.py#L87
  11. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/base.py#L928
  12. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/apps/config.py#L112
  13. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/apps/config.py#L163
  14. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/views/debug.py#L228
  15. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/views/debug.py#L362
  16. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/base.py#L749
  17. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/base.py#L767
  18. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/creation.py#L201
  19. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/creation.py#L226
  20. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/sqlite3/creation.py#L46
  21. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/sqlite3/creation.py#L93
  22. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/sqlite3/creation.py#L98
  23. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/postgresql/creation.py#L48
  24. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/postgresql/creation.py#L72
  25. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/postgresql/creation.py#L85
  26. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/mysql/base.py#L431
  27. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/mysql/creation.py#L23
  28. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/mysql/creation.py#L41
  29. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/mysql/creation.py#L57
  30. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L37
  31. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L71
  32. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L80
  33. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L94
  34. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L115
  35. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L179
  36. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L189
  37. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/templatetags/tz.py#L84
  38. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L410
  39. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L422
  40. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1123
  41. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1146
  42. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1541
  43. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1788
  44. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/utils.py#L508
  45. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/runner.py#L1071
  46. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L198
  47. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L221
  48. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L256
  49. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L287
  50. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/asgi.py#L235
  51. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/exception.py#L43
  52. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/exception.py#L56
  53. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/exception.py#L165
  54. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/serializers/base.py#L379
  55. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/serializers/xml_serializer.py#L360
  56. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/__init__.py#L395
  57. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/commands/shell.py#L79
  58. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/commands/shell.py#L94
  59. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/commands/inspectdb.py#L125
  60. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/mail/backends/console.py#L41
  61. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/dispatch/dispatcher.py#L212
  62. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/contenttypes/forms.py#L110
  63. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/contenttypes/fields.py#L173
  64. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/measure.py#L245
  65. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/utils/layermapping.py#L666
  66. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/utils/ogrinfo.py#L23
  67. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/utils/srs.py#L40
  68. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/utils/srs.py#L42
  69. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/utils/srs.py#L51
  70. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/base/models.py#L26
  71. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/base/models.py#L32
  72. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/base/models.py#L35
  73. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/spatialite/introspection.py#L40
  74. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/spatialite/base.py#L54
  75. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/postgis/adapter.py#L34
  76. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/postgis/introspection.py#L55
  77. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/postgis/operations.py#L370
  78. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/oracle/introspection.py#L29
  79. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/oracle/operations.py#L151
  80. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/cached_db.py#L30
  81. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/signed_cookies.py#L20
  82. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/base.py#L109
  83. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/cache.py#L26
  84. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/flatpages/middleware.py#L17
  85. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/http/response.py#L327
  86. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/http/response.py#L419

The following messages are no longer emitted:

  1. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/autoreload.py#L338
  2. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/autoreload.py#L565
  3. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/log.py#L106
  4. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/http.py#L156
  5. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/module_loading.py#L59
  6. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/utils/encoding.py#L259
  7. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/defaultfilters.py#L735
  8. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/defaultfilters.py#L977
  9. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/smartif.py#L61
  10. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/smartif.py#L87
  11. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/template/base.py#L928
  12. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/apps/config.py#L112
  13. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/apps/config.py#L163
  14. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/views/debug.py#L228
  15. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/views/debug.py#L362
  16. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/base.py#L749
  17. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/base.py#L767
  18. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/creation.py#L201
  19. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/base/creation.py#L226
  20. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/sqlite3/creation.py#L46
  21. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/sqlite3/creation.py#L93
  22. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/sqlite3/creation.py#L98
  23. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/postgresql/creation.py#L48
  24. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/postgresql/creation.py#L72
  25. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/postgresql/creation.py#L85
  26. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/mysql/creation.py#L23
  27. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/mysql/creation.py#L41
  28. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/mysql/creation.py#L57
  29. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L37
  30. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L71
  31. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L80
  32. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L94
  33. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L115
  34. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L179
  35. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/db/backends/oracle/creation.py#L189
  36. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/templatetags/tz.py#L84
  37. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L410
  38. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L422
  39. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1123
  40. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1146
  41. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1541
  42. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/testcases.py#L1788
  43. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/utils.py#L508
  44. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/test/runner.py#L1071
  45. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L198
  46. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L221
  47. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L256
  48. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/base.py#L287
  49. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/asgi.py#L235
  50. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/exception.py#L43
  51. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/exception.py#L56
  52. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/handlers/exception.py#L165
  53. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/serializers/base.py#L379
  54. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/serializers/xml_serializer.py#L360
  55. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/__init__.py#L395
  56. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/commands/shell.py#L79
  57. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/commands/shell.py#L94
  58. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/management/commands/inspectdb.py#L125
  59. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/core/mail/backends/console.py#L41
  60. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/dispatch/dispatcher.py#L212
  61. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/utils/layermapping.py#L666
  62. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/base/models.py#L26
  63. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/base/models.py#L32
  64. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/gis/db/backends/spatialite/base.py#L54
  65. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/cached_db.py#L30
  66. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/signed_cookies.py#L20
  67. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/base.py#L109
  68. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/sessions/backends/cache.py#L26
  69. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/contrib/flatpages/middleware.py#L17
  70. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/http/response.py#L327
  71. broad-except:
    Catching too general exception Exception
    https://github.com/django/django/blob/444b6da7cc229a58a2c476a52e45233001dc7073/django/http/response.py#L419

Effect on flask:
The following messages are now emitted:

  1. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L605
  2. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L898
  3. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/config.py#L138
  4. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L1824
  5. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L1849
  6. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L2529

The following messages are no longer emitted:

  1. broad-except:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L605
  2. broad-except:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/cli.py#L898
  3. broad-except:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/config.py#L138
  4. broad-except:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L1824
  5. broad-except:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L1849
  6. broad-except:
    Catching too general exception Exception
    https://github.com/pallets/flask/blob/cc66213e579d6b35d9951c21b685d0078f373c44/src/flask/app.py#L2529

Effect on pandas:
The following messages are now emitted:

  1. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tseries/holiday.py#L443
  2. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/_testing/_io.py#L228
  3. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 228)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/_testing/_io.py#L228
  4. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/apply.py#L284
  5. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/apply.py#L709
  6. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/series.py#L2938
  7. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/series.py#L4168
  8. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/groupby/generic.py#L1470
  9. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/arrays/sparse/array.py#L427
  10. locally-disabled:
    Locally disabling broad-exception-caught (W0718)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/dtypes/cast.py#L498
  11. suppressed-message:
    Suppressed 'broad-exception-caught' (from line 498)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/dtypes/cast.py#L498
  12. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/indexes/extension.py#L170
  13. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/core.py#L1486
  14. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/converter.py#L295
  15. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/converter.py#L319
  16. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/converter.py#L432
  17. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/reshape/test_pivot.py#L2021
  18. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/series/methods/test_is_unique.py#L32
  19. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/frame/test_stack_unstack.py#L1873
  20. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/generic/test_generic.py#L45
  21. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/test_arrow.py#L1247
  22. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/ops.py#L150
  23. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/ops.py#L209
  24. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/methods.py#L365
  25. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L176
  26. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L181
  27. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L209
  28. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L212
  29. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L258
  30. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L261
  31. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/decimal/test_decimal.py#L456
  32. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/tslibs/test_conversion.py#L40
  33. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/tslibs/test_conversion.py#L45
  34. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/test_html.py#L1279
  35. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L109
  36. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L157
  37. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L162
  38. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L179
  39. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L183
  40. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/parser/test_c_parser_only.py#L71
  41. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/sql.py#L576
  42. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/pytables.py#L1163
  43. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/pytables.py#L1604
  44. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/pytables.py#L3357
  45. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/parsers/base_parser.py#L1134
  46. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/parsers/base_parser.py#L1132

The following messages are no longer emitted:

  1. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/_testing/_io.py#L228
  2. suppressed-message:
    Suppressed 'broad-except' (from line 228)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/_testing/_io.py#L228
  3. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/apply.py#L284
  4. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/apply.py#L709
  5. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/groupby/generic.py#L1470
  6. locally-disabled:
    Locally disabling broad-except (W0703)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/dtypes/cast.py#L498
  7. suppressed-message:
    Suppressed 'broad-except' (from line 498)
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/dtypes/cast.py#L498
  8. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/core/indexes/extension.py#L170
  9. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/core.py#L1486
  10. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/converter.py#L295
  11. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/converter.py#L319
  12. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/plotting/_matplotlib/converter.py#L432
  13. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/test_arrow.py#L1247
  14. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/ops.py#L150
  15. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/ops.py#L209
  16. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/methods.py#L365
  17. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L176
  18. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L181
  19. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L209
  20. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L212
  21. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L258
  22. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/extension/base/dim2.py#L261
  23. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/tslibs/test_conversion.py#L40
  24. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/tslibs/test_conversion.py#L45
  25. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/test_html.py#L1279
  26. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L109
  27. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L157
  28. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L162
  29. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L179
  30. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/conftest.py#L183
  31. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/tests/io/parser/test_c_parser_only.py#L71
  32. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/sql.py#L576
  33. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/pytables.py#L1163
  34. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/pytables.py#L1604
  35. broad-except:
    Catching too general exception Exception
    https://github.com/pandas-dev/pandas/blob/16645fedb7d9895395488d4d90dc06bd47510057/pandas/io/parsers/base_parser.py#L1134

Effect on psycopg:
The following messages are now emitted:

  1. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_pipeline.py#L239
  2. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_pipeline.py#L280
  3. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_tz.py#L34
  4. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor_async.py#L163
  5. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor_async.py#L170
  6. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_tpc.py#L40
  7. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/transaction.py#L121
  8. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/connection.py#L345
  9. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/connection.py#L755
  10. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor.py#L797
  11. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor.py#L804
  12. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/connection_async.py#L158
  13. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/pq_ctypes.py#L57
  14. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/misc.py#L67
  15. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/__init__.py#L76
  16. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/__init__.py#L83
  17. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/__init__.py#L90

The following messages are no longer emitted:

  1. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_pipeline.py#L239
  2. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_pipeline.py#L280
  3. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_tz.py#L34
  4. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor_async.py#L163
  5. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor_async.py#L170
  6. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/_tpc.py#L40
  7. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/transaction.py#L121
  8. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/connection.py#L345
  9. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/connection.py#L755
  10. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor.py#L797
  11. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/cursor.py#L804
  12. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/connection_async.py#L158
  13. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/pq_ctypes.py#L57
  14. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/misc.py#L67
  15. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/__init__.py#L76
  16. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/__init__.py#L83
  17. broad-except:
    Catching too general exception Exception
    https://github.com/psycopg/psycopg/blob/489fcd7e45bfac54b4f679ac2cdfab3ee303742f/psycopg/psycopg/pq/__init__.py#L90

Effect on pygame:
The following messages are now emitted:

  1. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pygame/pygame/blob/820c056cb0cdb179cfa21a491d2e95749b44788f/src_py/threads/__init__.py#L200
  2. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pygame/pygame/blob/820c056cb0cdb179cfa21a491d2e95749b44788f/src_py/threads/__init__.py#L253
  3. broad-exception-raised:
    Raising too general exception: Exception
    https://github.com/pygame/pygame/blob/820c056cb0cdb179cfa21a491d2e95749b44788f/src_py/threads/__init__.py#L261

The following messages are no longer emitted:

  1. broad-except:
    Catching too general exception Exception
    https://github.com/pygame/pygame/blob/820c056cb0cdb179cfa21a491d2e95749b44788f/src_py/threads/__init__.py#L200

Effect on pytest:
The following messages are now emitted:

  1. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/unittest.py#L53
  2. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/compat.py#L304
  3. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/compat.py#L339
  4. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/pytester.py#L1181
  5. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/skipping.py#L126
  6. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/skipping.py#L138
  7. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/pathlib.py#L205
  8. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/pathlib.py#L218
  9. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/pathlib.py#L306
  10. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/pathlib.py#L362
  11. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/config/__init__.py#L431
  12. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_py/path.py#L974
  13. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_py/path.py#L1403
  14. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_py/path.py#L1410
  15. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/assertion/util.py#L198
  16. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/assertion/rewrite.py#L388
  17. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/assertion/rewrite.py#L459
  18. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/assertion/rewrite.py#L477
  19. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_code/code.py#L294
  20. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_code/code.py#L892
  21. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_code/source.py#L122
  22. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_code/source.py#L207
  23. broad-exception-caught:
    Catching too general exception Exception
    https://github.com/pytest-dev/pytest/blob/2f33ea87c8d303c3439655eb2bea24483bffde5e/src/_pytest/_io/saf...

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

This comment was generated for commit c51f18f

Copy link
Collaborator

@DudeNr33 DudeNr33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only looked at the pyreverse change, but that looks good to me!

@cdce8p
Copy link
Member

cdce8p commented Nov 5, 2022

Just a suggestion for the future. Please split it into two separate PRs. I would consider a new check a larger enough change that the separation would probably be better, even if it's related to the refactoring.

antonag32 added a commit to vauxoo-dev/pre-commit-vauxoo that referenced this pull request Oct 19, 2023
This commit updates pylintrc configuration files used for pylint. It
removes a bunch of messages that don't exist anymore or updates their
name in cases when they were renamed. Checks removed were either:

* renamed
* applied to python 2
* are now performed by other tools
* applied to really old versions of odoo

Some cases which have official documentation are the  following:

* bad-continuation and bad-whitespace were removed in pylint 2.6
  https://pylint.pycqa.org/en/v2.11.1/whatsnew/2.6.html
* bad-optional-value was split into useless-option-value and unknown-option-value
  https://pylint.pycqa.org/en/latest/user_guide/messages/error/bad-option-value.html
* missing-docstring split into three checks (module,class,function)
  https://pylint.pycqa.org/en/latest/user_guide/messages/convention/missing-docstring.html
* no-self-use is redundant since the extension that creates it is not used
* no-init was removed
  pylint-dev/pylint#6373
* useless-super-delegation was renamed to useless-parent-delegation
* broad-except renamed and a new check added:
  pylint-dev/pylint#7709
antonag32 added a commit to vauxoo-dev/pre-commit-vauxoo that referenced this pull request Oct 19, 2023
This commit updates pylintrc configuration files used for pylint. It
removes a bunch of messages that don't exist anymore or updates their
name in cases when they were renamed. Checks removed were either:

* renamed
* applied to python 2
* are now performed by other tools
* applied to really old versions of odoo

Some cases which have official documentation are the  following:

* bad-continuation and bad-whitespace were removed in pylint 2.6
  https://pylint.pycqa.org/en/v2.11.1/whatsnew/2.6.html
* bad-optional-value was split into useless-option-value and unknown-option-value
  https://pylint.pycqa.org/en/latest/user_guide/messages/error/bad-option-value.html
* missing-docstring split into three checks (module,class,function)
  https://pylint.pycqa.org/en/latest/user_guide/messages/convention/missing-docstring.html
* no-self-use is redundant since the extension that creates it is not used
* no-init was removed
  pylint-dev/pylint#6373
* useless-super-delegation was renamed to useless-parent-delegation
* broad-except renamed and a new check added:
  pylint-dev/pylint#7709
moylop260 pushed a commit to Vauxoo/pre-commit-vauxoo that referenced this pull request Nov 23, 2023
* [REF] cfg: bump pylint-odoo to v9.0.4

pylint v3.0.0 was released and pylint-odoo has been updated to work with
it. A new major version of pylint-odoo has therefore been released.

BREAKING CHANGE: support for python < 3.7 (everything below py3.8) has
been dropped since pylint no longer supports it upstream either.

* [FIX] core: simplify != 0 comparisons

New pylint 3.0.0 release was raising
use-implicit-booleaness-not-comparison-to-zero errors. They have been
corrected.

* [REF] cfg: make `use-implicit-boleaness-*` optional

These checks were previously part of a pylint extension so they had to
be manually loaded as plugins. They now form part of the core and simply
need to be enabled. After internal discussion it was decided to make
them optional.

* [REF] cfg: drop dead messages from pylintrc

Messages that were not generated by pylint-odoo anymore were removed
from the respective configuration files to reduce clutter.

* [IMP] cfg: update autofix hooks

This commit updates the version for all hooks in the autofix
configuration to their latest release.

It also moves isort's configuration on the .yaml itself to
the respective configuration file for the tool since that
is the prefered way.

* [IMP] cfg: update optional hooks & flake config

This commit updates the version of all optional hooks to their latest
release. flake8-bugbear which flake8 uses has been updated as well.

flake8 configuration was updated as well, since this new version does
not support inline commnets.

B018 which checks for useless expressions was also supressed on
__manifest__.py files.

* [IMP] cfg: update mandatory hook versions & flake config

All the versions for hooks in .pre-commit-config.yaml, known as
mandatory hooks, have been updated.

flake8 configuration had to be modified since this specific project
has two config sources, setup.cfg and flake8, the [flake8] section in
setup.cfg had to be removed since it was overriding the one set in
.flake8.

Also removed the exclude line, since some other messages may apply to
__init__.py, and __unported__ files wont even be checked because
pre-commit excludes them (not a python file).

* [IMP] tests: validate pylintrc files

A test has been added to verify there are no duplicate messages in a
pylintrc enable/disable section and that all messages actually exist.
This makes it easier to keep clean pylintrc files by automating some
basic checks on them.

* [FIX] cfg: remove duplicate message in .pylintrc files

* [REF] cfg: cleanup pylintrc, remove non-existent messages

This commit updates pylintrc configuration files used for pylint. It
removes a bunch of messages that don't exist anymore or updates their
name in cases when they were renamed. Checks removed were either:

* renamed
* applied to python 2
* are now performed by other tools
* applied to really old versions of odoo

Some cases which have official documentation are the  following:

* bad-continuation and bad-whitespace were removed in pylint 2.6
  https://pylint.pycqa.org/en/v2.11.1/whatsnew/2.6.html
* bad-optional-value was split into useless-option-value and unknown-option-value
  https://pylint.pycqa.org/en/latest/user_guide/messages/error/bad-option-value.html
* missing-docstring split into three checks (module,class,function)
  https://pylint.pycqa.org/en/latest/user_guide/messages/convention/missing-docstring.html
* no-self-use is redundant since the extension that creates it is not used
* no-init was removed
  pylint-dev/pylint#6373
* useless-super-delegation was renamed to useless-parent-delegation
* broad-except renamed and a new check added:
  pylint-dev/pylint#7709

* [REF] cfg: (flake8) disable B905,B907 and make E741 optional

* [REF] pylintrc: make  optional

* [REF] flake8: ignore E501

This check was not being generated as mandatory previously, therefore it
has been ignored. It is already covered by other checks anyways.

* [REF] cfg: update pylint-odoo to v9.0.4

* [REV]: keep black in same version

This keeps the performance improvement of using a mypyc compiled
version with no new style changes, those will be applied at a later
time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check for raise Exception or BaseException
5 participants