TST: Add hook for Disallow bare pytest.raises
xref #30999

Adding a hook with lots of excluded folders (for now), this can be made stricter as we go along, there's not that much left
looks reasonable, can you rebase once more thanks @MarcoGorelli  > We are now down to just extension and can merge this, and imo close #30999

@moink sorry I missed this comment - so, computation and io are covered now? If so, do you want to make a PR to remove them from the `exclude` section of this hook and write `closes #30999` in the PR body? > > We are now down to just extension and can merge this, and imo close #30999
> 
> @moink sorry I missed this comment - so, computation and io are covered now? If so, do you want to make a PR to remove them from the `exclude` section of this hook and write `closes #30999` in the PR body?

#38973