Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

update flake8 to 5.0.4 and fixes (#1818)

Edgar Riba16a343cd6733
diff --git a/.github/workflows/tests_cpu.yml b/.github/workflows/tests_cpu.yml
index 43ee253d7..119f3cce1 100644
--- a/.github/workflows/tests_cpu.yml
+++ b/.github/workflows/tests_cpu.yml
@@ -33,7 +33,7 @@ jobs:
pip install .[all]
- name: Run Tests
shell: bash -l {0}
- run: pytest -v --device cpu --dtype float32,float64 --cov=kornia --cov-report xml ./test --flake8 --mypy
+ run: pytest -v --device cpu --dtype float32,float64 --cov=kornia --cov-report xml ./test --mypy
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2111aac7d..db3422c60 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,7 +37,7 @@ repos:
- id: isort
- repo: https://github.com/PyCQA/flake8
- rev: 4.0.1
+ rev: 5.0.4
hooks:
- id: flake8
diff --git a/Makefile b/Makefile
index 6cc611f18..80b46f88a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ test-slow: FORCE
pytest -v --device all --dtype all -m "(jit or grad or nn)"
lint: FORCE
- pytest -v --cache-clear --flake8 kornia/ examples/ test/ -m flake8
+ flake8 -v kornia/ test/ examples/
mypy: FORCE
pytest -v --cache-clear --mypy kornia/ -m mypy
diff --git a/requirements/dev.txt b/requirements/dev.txt
index 96a526f50..204ce2f2c 100644
--- a/requirements/dev.txt
+++ b/requirements/dev.txt
@@ -1,6 +1,5 @@
pytest==7.1.2
-pytest-flake8==1.1.1
-flake8==4.0.1
+flake8==5.0.4
pytest-cov==3.0.0
pytest-mypy==0.9.1
pydocstyle