            # stop the build if there are Python syntax errors or undefined names
            flake8 . --select=E9,F63,F7,F82 --show-source
            # exit-zero treats all errors as warnings.
            flake8 . --exit-zero
        - name: Simple Tests
          run: |
            if [ "${{ matrix.backend }}" == "amd" ] ; then echo "{\"PLAIDML_DEVICE_IDS\":[\"llvm_cpu.0\"],\"PLAIDML_EXPERIMENTAL\":true}" > ~/.plaidml; fi ;
            echo "{\"PLAIDML_DEVICE_IDS\":[\"llvm_cpu.0\"],\"PLAIDML_EXPERIMENTAL\":true}" > ~/.plaidml;
            FACESWAP_BACKEND="${{ matrix.backend }}" KERAS_BACKEND="${{ matrix.kbackend }}" py.test -v tests/;
 
</s> remove             if self._target:
 </s> add             if self._target is not None: </s> remove         frame = reader.get_next_data()[:, :, ::-1]
 </s> add         frame = reader.get_next_data()[:, :, ::-1]  # type:ignore[index]
      - name: MyPy Typing
        continue-on-error: true
        run: |
          mypy .
            # stop the build if there are Python syntax errors or undefined names
            flake8 . --select=E9,F63,F7,F82 --show-source
            # exit-zero treats all errors as warnings.
            flake8 . --exit-zero
      - name: MyPy Typing
        continue-on-error: true
        run: |
          mypy .
        - name: Simple Tests
          run: |
            if [ "${{ matrix.backend }}" == "amd" ] ; then echo "{\"PLAIDML_DEVICE_IDS\":[\"llvm_cpu.0\"],\"PLAIDML_EXPERIMENTAL\":true}" > ~/.plaidml; fi ;
            echo "{\"PLAIDML_DEVICE_IDS\":[\"llvm_cpu.0\"],\"PLAIDML_EXPERIMENTAL\":true}" > ~/.plaidml;
            FACESWAP_BACKEND="${{ matrix.backend }}" KERAS_BACKEND="${{ matrix.kbackend }}" py.test -v tests/;
keep keep keep add keep keep keep keep keep
 tests:
  - unit test: tools.alignments.media
  - Add mypy test
  - Typing fixes 
.github/workflows/pytest.yml