update tests to reflect changes in the API. reorganise hatch envs add black,isort configs to pyproject.toml add pre-commit config