Cannot use mypy configuration in `pyproject.toml`
Bug description
The mypy configuration is stored in pyproject.toml
I tried to do the following:
[tool.hatch.build.targets.wheel.hooks.mypyc]
dependencies = ["hatch-mypyc~=0.16.0"]
mypy-args = ["--config-file=pyproject.toml"]
But I ended up with
Exception: Error while invoking Mypyc:
usage: mypy [-h] [-v] [-V] [more options; see below]
[-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
mypy: error: Cannot find config file 'pyproject.toml'
I was running into this issue as well. This seems to be the cause:
https://github.com/ofek/hatch-mypyc/blob/95613d56cf6cb73b72b71690da948743c629f941/hatch_mypyc/plugin.py#L269-L281
definitely a bug, can you please check if it supports PEP 639 now?
PEP 639 is still a draft, and I'm not sure if setuptools supports it. There are a few issues mentioning PEP 639, but nothing conclusive, e.g. https://github.com/pypa/setuptools/issues/3596 and https://github.com/pypa/setuptools/issues/4033.
setuptools has support for PEP 639 as of 77.0.0: https://github.com/pypa/setuptools/pull/4904 / https://setuptools.pypa.io/en/stable/history.html#v77-0-0. I ran into the same issue, would be wonderful if this was fixed!
Same issue still here, maybe it is time to remove hide_project_file...