mypy-check
mypy-check copied to clipboard
There are no .py[i] files in directory '.'
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?
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"
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.