helpers: very partial support for pygments >= 2.12
tests: try harder to prevent Git from reading external configuration
Merge from stable
docs: add docs/.readthedocs.yaml
docs: drop invalid intersphinx_mapping to None
setup: use importlib instead of pkg_resources
tests: drop adding working directory to sys.path
conftest: Refactor (simplify and optimize) pytest_ignore_collect