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

There are no .py[i] files in directory '.'

Open danieleades opened this issue 3 years ago • 2 comments

i'm using the .mypy.ini config file to specify which files to include when running mypy (such that I can simply run $ mypy. I'm also using this config file to exclude particular files and directories.

if i use this action without any arguments i get this error-

There are no .py[i] files in directory '.'

how should i be using this?

danieleades avatar May 01 '21 11:05 danieleades

I was able to fix this by using path: "*.py" like so:

jobs:
  python:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: MyPy Check
        uses: jpetrucciani/mypy-check@master
        with:
          path: "*.py"

pfandzelter avatar Jun 12 '21 14:06 pfandzelter

If anyone else encounters this, the issue is due to the fact that the action defaults the path to '.' which makes mypy ignore files specified in the config. I set the path to '' and it now works as expected.

NiceAesth avatar Dec 02 '22 14:12 NiceAesth