{"language": "Python", "id": 69, "repo_owner": "optuna", "repo_name": "optuna", "head_branch": "unifiy-implementation-of-fast-nondominated-sort", "workflow_name": "Checks", "workflow_filename": "checks.yml", "workflow_path": ".github/workflows/checks.yml", "contributor": "Alnusjaponica", "sha_fail": "3137ef65975fc93e9e82b130e545028223cef408", "sha_success": "a4cd1cd2d275d5163bcbbb4cb29b3cf378789e99", "workflow": "name: Checks\n\non:\n push:\n branches:\n - master\n pull_request: {}\n schedule:\n - cron: '0 23 * * SUN-THU'\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}\n cancel-in-progress: true\n\njobs:\n checks:\n if: (github.event_name == 'schedule' && github.repository == 'optuna/optuna') || (github.event_name != 'schedule')\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v3\n\n - uses: actions/setup-python@v4\n with:\n python-version: 3.8\n\n - name: Install\n run: |\n python -m pip install -U pip\n pip install --progress-bar off -U .[checking]\n\n - name: Output installed packages\n run: |\n pip freeze --all\n - name: Output dependency tree\n run: |\n pip install pipdeptree\n pipdeptree\n\n - name: black\n run: black . --check --diff\n - name: flake8\n run: flake8 .\n - name: isort\n run: isort . --check --diff\n - name: mypy\n run: mypy .\n - name: blackdoc\n run: blackdoc . --check --diff\n", "logs": [{"step_name": "checks/9_isort.txt", "log": "##[group]Run isort . --check --diff\n\u001b[36;1misort . --check --diff\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\nERROR: /home/runner/work/optuna/optuna/optuna/study/_multi_objective.py Imports are incorrectly sorted and/or formatted.\n--- /home/runner/work/optuna/optuna/optuna/study/_multi_objective.py:before\t2023-12-22 12:41:32.147471\n+++ /home/runner/work/optuna/optuna/optuna/study/_multi_objective.py:after\t2023-12-22 12:42:07.977714\n@@ -1,13 +1,16 @@\n from __future__ import annotations\n \n from collections import defaultdict\n-from typing import List, Optional, Sequence\n+from typing import List\n+from typing import Optional\n+from typing import Sequence\n \n import numpy as np\n \n import optuna\n from optuna.study._study_direction import StudyDirection\n-from optuna.trial import FrozenTrial, TrialState\n+from optuna.trial import FrozenTrial\n+from optuna.trial import TrialState\n \n \n def _get_pareto_front_trials_2d(\nSkipped 30 files\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/optuna/study/_multi_objective.py b/optuna/study/_multi_objective.py\nindex 4e4a36557..18cc8bccf 100644\n--- a/optuna/study/_multi_objective.py\n+++ b/optuna/study/_multi_objective.py\n@@ -1,13 +1,16 @@\n from __future__ import annotations\n \n from collections import defaultdict\n-from typing import List, Optional, Sequence\n+from typing import List\n+from typing import Optional\n+from typing import Sequence\n \n import numpy as np\n \n import optuna\n from optuna.study._study_direction import StudyDirection\n-from optuna.trial import FrozenTrial, TrialState\n+from optuna.trial import FrozenTrial\n+from optuna.trial import TrialState\n \n \n def _get_pareto_front_trials_2d(\n", "difficulty": 0, "changed_files": ["optuna/study/_multi_objective.py"], "commit_link": "https://github.com/optuna/optuna/tree/3137ef65975fc93e9e82b130e545028223cef408"} |