mypy-check
mypy-check copied to clipboard
`pyproject.toml` support
Please, add pyproject.toml
support
+1 for this!
Is it actually not supported?
- name: Run mypy
uses: jpetrucciani/mypy-check@master
with:
path: './mne_icalabel'
mypy_flags: '--config-file pyproject.toml'
That seems to work fine.
Perhaps the best experience would be if the action followed the defaults of mypy istself, which is described on the top of https://mypy.readthedocs.io/en/stable/config_file.html :
Mypy supports reading configuration settings from a file. By default it uses the file
mypy.ini
with a fallback to.mypy.ini
, thenpyproject.toml
, thensetup.cfg
in the current directory, then$XDG_CONFIG_HOME/mypy/config
, then~/.config/mypy/config
, and finally.mypy.ini
in the user home directory if none of them are found; the --config-file command-line flag can be used to read a different file instead (see Config file).
@jpetrucciani Any updates on this? I tried using the yaml from @mscheltienne but it doesnt install dependencies