Repository: optuna/optuna (branch: unifiy-implementation-of-fast-nondominated-sort)
Commit date: 2023-12-22T12:41:12Z

Workflow file: .github/workflows/checks.yml (Checks)
name: Checks

on:
  push:
    branches:
      - master
  pull_request: {}
  schedule:
    - cron: '0 23 * * SUN-THU'

concurrency:
  group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.run_number || github.ref }}
  cancel-in-progress: true

jobs:
  checks:
    if: (github.event_name == 'schedule' && github.repository == 'optuna/optuna') || (github.event_name != 'schedule')
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080

    steps:
    - uses: actions/checkout@v3

    - uses: actions/setup-python@v4
      with:
        python-version: 3.8

    - name: Install
      run: |
        python -m pip install -U pip
        pip install --progress-bar off -U .[checking]

    - name: Output installed packages
      run: |
        pip freeze --all
    - name: Output dependency tree
      run: |
        pip install pipdeptree
        pipdeptree

    - name: black
      run: black . --check --diff
    - name: flake8
      run: flake8 .
    - name: isort
      run: isort . --check --diff
    - name: mypy
      run: mypy .
    - name: blackdoc
      run: blackdoc . --check --diff

env:
  PIP_INDEX_URL: http://localhost:8629/2023-12-22
  UV_INDEX_URL: http://localhost:8629/2023-12-22


Failed build logs:
step_name: checks/9_isort.txt
log: ##[group]Run isort . --check --diff
[36;1misort . --check --diff[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
##[endgroup]
ERROR: /home/runner/work/optuna/optuna/optuna/study/_multi_objective.py Imports are incorrectly sorted and/or formatted.
--- /home/runner/work/optuna/optuna/optuna/study/_multi_objective.py:before	2023-12-22 12:41:32.147471
+++ /home/runner/work/optuna/optuna/optuna/study/_multi_objective.py:after	2023-12-22 12:42:07.977714
@@ -1,13 +1,16 @@
 from __future__ import annotations
 
 from collections import defaultdict
-from typing import List, Optional, Sequence
+from typing import List
+from typing import Optional
+from typing import Sequence
 
 import numpy as np
 
 import optuna
 from optuna.study._study_direction import StudyDirection
-from optuna.trial import FrozenTrial, TrialState
+from optuna.trial import FrozenTrial
+from optuna.trial import TrialState
 
 
 def _get_pareto_front_trials_2d(
Skipped 30 files
##[error]Process completed with exit code 1.


Changed files:
optuna/study/_multi_objective.py

Fix diff:
diff --git a/optuna/study/_multi_objective.py b/optuna/study/_multi_objective.py
index 4e4a36557..18cc8bccf 100644
--- a/optuna/study/_multi_objective.py
+++ b/optuna/study/_multi_objective.py
@@ -1,13 +1,16 @@
 from __future__ import annotations
 
 from collections import defaultdict
-from typing import List, Optional, Sequence
+from typing import List
+from typing import Optional
+from typing import Sequence
 
 import numpy as np
 
 import optuna
 from optuna.study._study_direction import StudyDirection
-from optuna.trial import FrozenTrial, TrialState
+from optuna.trial import FrozenTrial
+from optuna.trial import TrialState
 
 
 def _get_pareto_front_trials_2d(