diff --git a/.github/workflows/checks_template.yml b/.github/workflows/checks_template.yml index 27fc0ad6..5770e31e 100644 --- a/.github/workflows/checks_template.yml +++ b/.github/workflows/checks_template.yml @@ -74,6 +74,15 @@ jobs: blackdoc tests/${{ inputs.integration_name }} --check --diff fi + - name: Flake8 + run: | + if [ -e optuna_integration/${{ inputs.integration_name }} ]; then + flake8 optuna_integration/${{ inputs.integration_name }} + fi + if [ -e tests/${{ inputs.integration_name }} ]; then + flake8 tests/${{ inputs.integration_name }} + fi + tests: runs-on: ubuntu-latest strategy: diff --git a/optuna_integration/botorch/botorch.py b/optuna_integration/botorch/botorch.py index d4aa8f0b..2b792387 100644 --- a/optuna_integration/botorch/botorch.py +++ b/optuna_integration/botorch/botorch.py @@ -1,3 +1,5 @@ +# flake8: noqa + from __future__ import annotations from collections.abc import Callable diff --git a/optuna_integration/comet/comet.py b/optuna_integration/comet/comet.py index 3aa76705..24cc2d8e 100644 --- a/optuna_integration/comet/comet.py +++ b/optuna_integration/comet/comet.py @@ -1,3 +1,5 @@ +# flake8: noqa + from __future__ import annotations from collections.abc import Callable