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")