From 1aa2dcef9e5f8014772aa06bb753b6093f94aab7 Mon Sep 17 00:00:00 2001 From: Vitali Yanushchyk Date: Mon, 20 May 2024 12:35:51 -0400 Subject: [PATCH] chg ! flake8 in github workflow --- .github/workflows/ci.yml | 9 +++++++-- tests/test_storage.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b0cba03..f38dc395 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,8 +71,13 @@ jobs: run: | docker run --rm -i \ ${{ vars.DOCKERHUB_ORGANIZATION }}/hope-support-images:deduplication-engine-${{ github.sha }}-dev \ - flake8 . - + flake8 \ + --max-complexity 12 \ + --max-line-length 120 \ + --exclude=.*/,__pycache__,docs,~build,dist,*.md \ + --per-file-ignores='src/**/migrations/*.py:E501' \ + . + unit_tests: runs-on: ubuntu-latest needs: [build_and_push_dev] diff --git a/tests/test_storage.py b/tests/test_storage.py index 57fbd195..23cf8373 100644 --- a/tests/test_storage.py +++ b/tests/test_storage.py @@ -9,7 +9,7 @@ def test_fs(tmp_path): s = CV2DNNStorage(tmp_path) s.save("test", ContentFile("aa", "test.txt")) s.save("test", ContentFile("bb", "test.txt")) - # assert s.listdir(".") == ([], ["test"]) + assert s.listdir(".") == ([], ["test"]) with s.open("test") as fd: assert fd.read() == b"bb" s.delete("test")