Skip to content

Commit e535af6

Browse files
committed
python format fix
1 parent 49dd5e4 commit e535af6

File tree

112 files changed

+158
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+158
-174
lines changed

cmake/samples/python/sample.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
"""Sample to test or-tools installation."""
1616

1717
import ortools
18-
1918
# from ortools.algorithms import knapsack_solver
2019
from ortools.constraint_solver import pywrapcp
21-
2220
# from ortools.graph.python import linear_sum_assignment
2321
# from ortools.graph.python import max_flow
2422
# from ortools.graph.python import min_cost_flow

ortools/algorithms/python/knapsack_solver_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""knapsack_solver unittest file."""
1616

1717
from absl.testing import absltest
18+
1819
from ortools.algorithms.python import knapsack_solver
1920

2021

ortools/algorithms/samples/knapsack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
"""A simple knapsack problem."""
16+
1617
# [START program]
1718
# [START import]
1819
from ortools.algorithms.python import knapsack_solver

ortools/algorithms/samples/simple_knapsack_program.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# [START program]
1616
"""A simple knapsack problem."""
17+
1718
# [START import]
1819
from ortools.algorithms.python import knapsack_solver
1920

ortools/constraint_solver/python/constraint_solver_extension_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import sys
1818

1919
from absl.testing import absltest
20-
from ortools.constraint_solver import search_limit_pb2
21-
from ortools.constraint_solver import solver_parameters_pb2
20+
21+
from ortools.constraint_solver import search_limit_pb2, solver_parameters_pb2
2222
from ortools.constraint_solver.python import constraint_solver as cp
2323

2424

ortools/constraint_solver/python/constraint_solver_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Test for constraint_solver pybind11 layer."""
1616

1717
from absl.testing import absltest
18+
1819
from ortools.constraint_solver.python import constraint_solver as cp
1920
from ortools.util.python import piecewise_linear_function as pwl
2021

ortools/constraint_solver/python/pywrapcp_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import sys
1818

1919
from absl.testing import absltest
20-
from ortools.constraint_solver import search_limit_pb2
21-
from ortools.constraint_solver import solver_parameters_pb2
22-
from ortools.constraint_solver import pywrapcp
20+
21+
from ortools.constraint_solver import (pywrapcp, search_limit_pb2,
22+
solver_parameters_pb2)
2323

2424

2525
def inc_callback(i):

ortools/constraint_solver/samples/cp_is_fun_cp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
2121
This problem has 72 different solutions in base 10.
2222
"""
23+
2324
# [START import]
2425
from ortools.constraint_solver.python import constraint_solver as cp
2526

ortools/constraint_solver/samples/nqueens_cp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414

1515
# [START program]
1616
"""OR-Tools solution to the N-queens problem."""
17+
1718
# [START import]
1819
import sys
20+
1921
from ortools.constraint_solver.python import constraint_solver as cp
2022

2123
# [END import]

ortools/graph/samples/assignment_linear_sum_assignment.py

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# [START program]
1616
"""Solve assignment problem using linear assignment solver."""
17+
1718
# [START import]
1819
import numpy as np
1920

0 commit comments

Comments
 (0)