Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Include the tests directory to flake8 targets (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taketoshi Fujiwara authored Mar 18, 2020
1 parent 4c5014a commit 620ba3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ install-gpu: install

.PHONY: lint
lint:
flake8 ./blueoil --exclude=templates,converter
flake8 ./blueoil ./tests --exclude=templates,converter

.PHONY: build
build: deps
Expand Down Expand Up @@ -60,7 +60,7 @@ test-lmnet: test-blueoil-pep8 test-unit-main
test-blueoil-pep8: build
# Check blueoil pep8
# FIXME: blueoil/templates and blueoil/converter have a lot of errors with flake8
docker run ${DOCKER_OPT} $(IMAGE_NAME):$(BUILD_VERSION) /bin/bash -c "flake8 ./blueoil --exclude=templates,converter"
docker run ${DOCKER_OPT} $(IMAGE_NAME):$(BUILD_VERSION) /bin/bash -c "flake8 ./blueoil ./tests --exclude=templates,converter"

.PHONY: test-unit-main
test-unit-main: build
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/test_object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
}
}


@pytest.mark.parametrize(
"config", [
openimagesv4_object_detection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from blueoil.datasets.image_folder import ImageFolderBase
from blueoil.pre_processor import Resize
from blueoil.quantizations import (
binary_mean_scaling_quantizer,
binary_mean_scaling_quantizer,
linear_mid_tread_half_quantizer,
)
from blueoil.utils.executor import prepare_dirs
Expand Down

0 comments on commit 620ba3b

Please sign in to comment.