MISC: Check that min versions are aligned in CI and import_optional_dependency
Follow up to include `install.rst`

when you update pre-commit hooks, does one have to update dev environment with some git command, or is the addition of new files and new code enough for the hooks to operate as expected? > when you update pre-commit hooks, does one have to update dev environment with some git command, or is the addition of new files and new code enough for the hooks to operate as expected?

Nope. pre-commit will run (and install new dependencies if needed) with the changes of `.pre-commit-config.yaml` and addition of scripts. IIRC pre-commit runs in it's _own_ virtual environment. also pls rebase @mroeschke can you rebase this to make sure ok (as merged @lithomas1 change) https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=72445&view=logs&j=e2350215-d973-503e-a41e-d287ff823797&t=751e993b-1954-5330-832a-a54bd1064f7d are these failing on master?
 > https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=72445&view=logs&j=e2350215-d973-503e-a41e-d287ff823797&t=751e993b-1954-5330-832a-a54bd1064f7d are these failing on master?

Yes it appears so. 

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=72425&view=logs&j=e2350215-d973-503e-a41e-d287ff823797&t=751e993b-1954-5330-832a-a54bd1064f7d&l=44 it's not urgent (i.e. block 1.4) but would be good to keep the ci files in sync on 1.4.x and main until they need to diverge for say Python 3.11 so that ci backports have less chance of needing manual intervention.

could either sync ci/deps/actions-38-minimum_versions.yaml or backport this PR. Might be better to backport this PR since it has some additional changes to `pandas/compat/_optional.py`, but no strong opinion on my side. @meeseeksdev backport 1.4.x