jpetrucciani / mypy-check

github action for python's mypy type checker tool
MIT License
33 stars 14 forks source link

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

Open danieleades opened 3 years ago

danieleades commented 3 years ago

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?

pfandzelter commented 3 years ago

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"
NiceAesth commented 1 year ago

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.