Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Remove `mypy` from running on tests (#1983)

João Gustavo A. Amorim0d434859f02b
diff --git a/.github/workflows/test_typing.yml b/.github/workflows/test_typing.yml
index 1ac2eab09..43277b698 100644
--- a/.github/workflows/test_typing.yml
+++ b/.github/workflows/test_typing.yml
@@ -36,7 +36,7 @@ jobs:
pip install .[dev,x]
- name: Run Tests
shell: bash -l {0}
- run: pytest -v --cov=kornia --cov-report xml --mypy kornia/ -m mypy
+ run: pytest -v --cov=kornia --cov-report xml --mypy kornia/
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
diff --git a/.github/workflows/tests_cpu.yml b/.github/workflows/tests_cpu.yml
index 882ab336e..20ae6b4bb 100644
--- a/.github/workflows/tests_cpu.yml
+++ b/.github/workflows/tests_cpu.yml
@@ -37,7 +37,7 @@ jobs:
pip install .[dev,x]
- name: Run Tests
shell: bash -l {0}
- run: pytest -v --device cpu --dtype float32,float64 --cov=kornia --cov-report xml ./test --mypy
+ run: pytest -v --device cpu --dtype float32,float64 --cov=kornia --cov-report xml ./test
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
diff --git a/.github/workflows/tests_lts.yml b/.github/workflows/tests_lts.yml
index 3627aafe4..62732af1c 100644
--- a/.github/workflows/tests_lts.yml
+++ b/.github/workflows/tests_lts.yml
@@ -36,7 +36,7 @@ jobs:
pip install .[dev,x]
- name: Run Tests
shell: bash -l {0}
- run: pytest -v --device cpu --dtype float32,float64 --cov=kornia --cov-report xml ./test --mypy
+ run: pytest -v --device cpu --dtype float32,float64 --cov=kornia --cov-report xml ./test
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
diff --git a/.github/workflows/tests_nightly.yml b/.github/workflows/tests_nightly.yml
index 5dcea9c45..95c3651ac 100644
--- a/.github/workflows/tests_nightly.yml
+++ b/.github/workflows/tests_nightly.yml
@@ -31,4 +31,4 @@ jobs:
pip install .[dev,x]
- name: Run Tests
shell: bash -l {0}
- run: pytest -v --device cpu --dtype float32,float64 ./test --flake8 --mypy
+ run: pytest -v --device cpu --dtype float32,float64 ./test
diff --git a/Makefile b/Makefile
index 0a264e321..9be38a65e 100644
--- a/Makefile
+++ b/Makefile
@@ -6,16 +6,16 @@ test-all: FORCE
pytest -v --device all --dtype float32,float64 --cov=kornia test/ --flake8 --mypy
test-cpu: FORCE
- pytest -v --device cpu --dtype all --cov=kornia test/ --flake8 --mypy
+ pytest -v --device cpu --dtype all --cov=kornia test/
test-cuda: FORCE
- pytest -v --device cuda --dtype all --cov=kornia test/ --flake8 --mypy
+ pytest -v --device cuda --dtype all --cov=kornia test/
test-mps: FORCE
pytest -v --device mps --dtype float32 -k "not (grad or exception or jit)" test/
test-module: FORCE
- pytest -v --device all --dtype all test/$(module) --flake8 --mypy
+ pytest -v --device all --dtype all test/$(module)
test-jit: FORCE
pytest -v --device all --dtype all -m jit
diff --git a/setup.cfg b/setup.cfg
index 5583c007e..a0ea40642 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -116,7 +116,7 @@ ignore =
E203 # Ignore "whitespace before ':'"
[mypy]
-files = kornia, test
+files = kornia/
pretty = True
show_error_codes = True
ignore_missing_imports = True