Skip to content

Commit

Permalink
chg ! flake8 in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vitali-yanushchyk-valor committed May 20, 2024
1 parent 439b5d3 commit 1aa2dce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1aa2dce

Please sign in to comment.