mypy-check icon indicating copy to clipboard operation
mypy-check copied to clipboard

`pyproject.toml` support

Open Olegt0rr opened this issue 2 years ago • 4 comments

Please, add pyproject.toml support

Olegt0rr avatar May 04 '22 05:05 Olegt0rr

+1 for this!

mscheltienne avatar Aug 01 '22 15:08 mscheltienne

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.

mscheltienne avatar Aug 01 '22 21:08 mscheltienne

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, then pyproject.toml, then setup.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).

anton-buyskikh avatar Dec 30 '22 13:12 anton-buyskikh

@jpetrucciani Any updates on this? I tried using the yaml from @mscheltienne but it doesnt install dependencies

gaby avatar May 31 '23 03:05 gaby