you just need only-include
https://hatch.pypa.io/1.13/config/build/#explicit-selection
it's easier than changing build backends
and a lot of times tests/ (and docs/) are included with source code in an sdist format - https://discuss.python.org/t/should-sdists-include-docs-and-tests/14578