Skip to content

Commit

Permalink
Merge pull request #201 from sawa3030/add-flake8
Browse files Browse the repository at this point in the history
Add flake8 in ci
  • Loading branch information
HideakiImamura authored Jan 31, 2025
2 parents db4e63d + 4cd1c6f commit 75021be
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/checks_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions optuna_integration/botorch/botorch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# flake8: noqa

from __future__ import annotations

from collections.abc import Callable
Expand Down
2 changes: 2 additions & 0 deletions optuna_integration/comet/comet.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# flake8: noqa

from __future__ import annotations

from collections.abc import Callable
Expand Down

0 comments on commit 75021be

Please sign in to comment.