diff --git a/.github/mypy/mypy.ini b/.github/mypy/mypy.ini index c80af3de..1822c0ae 100644 --- a/.github/mypy/mypy.ini +++ b/.github/mypy/mypy.ini @@ -1,4 +1,7 @@ [mypy] +exclude = (?x)( + _pb2\.py$ # protobuf generated files + ) [mypy-halo.*] ignore_missing_imports = True diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e60eb4e5..ea5eb30c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,9 +34,9 @@ jobs: - name: Install dependencies run: pip install -e .[dev] - name: Lint with isort - run: isort --profile black --length-sort --line-width 120 -c . + run: isort --profile black --length-sort --line-width 120 --skip-glob "*_pb2.py" -c . - name: Lint with black - run: black -l 120 --check . + run: black -l 120 --extend-exclude ".*_pb2.py" --check . - name: Lint with pycodestyle run: pycodestyle --show-source capa/ scripts/ tests/ - name: Check types with mypy