Skip to content

Commit 0d49053

Browse files
[pre-commit.ci] pre-commit autoupdate (#174)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e0afe5f commit 0d49053

File tree

6 files changed

+1
-62
lines changed

6 files changed

+1
-62
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
hooks:
1212
- id: trailing-whitespace
1313
- repo: https://github.com/psf/black
14-
rev: 22.12.0
14+
rev: 23.1.0
1515
hooks:
1616
- id: black
1717
- repo: https://github.com/cheshirekow/cmake-format-precommit

test/src/dense_qp_solve.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def generate_mixed_qp(n, seed=1):
4747

4848

4949
class DenseQpWrapper(unittest.TestCase):
50-
5150
# TESTS DENSE SOLVE FUNCTION
5251

5352
def test_case_basic_solve(self):

test/src/dense_qp_wrapper.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def generate_mixed_qp(n, seed=1):
4545

4646

4747
class DenseqpWrapper(unittest.TestCase):
48-
4948
# TESTS OF GENERAL METHODS OF THE API
5049

5150
def test_case_update_rho(self):
@@ -96,7 +95,6 @@ def test_case_update_rho(self):
9695
)
9796

9897
def test_case_update_mu(self):
99-
10098
print(
10199
"------------------------sparse random strongly convex qp with equality and inequality constraints: test update mus"
102100
)
@@ -147,7 +145,6 @@ def test_case_update_mu(self):
147145
)
148146

149147
def test_case_no_equilibration_at_initialization(self):
150-
151148
print(
152149
"------------------------sparse random strongly convex qp with equality and inequality constraints: test with no equilibration at initialization"
153150
)
@@ -197,7 +194,6 @@ def test_case_no_equilibration_at_initialization(self):
197194
)
198195

199196
def test_case_with_equilibration_at_initialization(self):
200-
201197
print(
202198
"------------------------sparse random strongly convex qp with equality and inequality constraints: test with equilibration at initialization"
203199
)
@@ -247,7 +243,6 @@ def test_case_with_equilibration_at_initialization(self):
247243
)
248244

249245
def test_case_no_initial_guess(self):
250-
251246
print(
252247
"------------------------sparse random strongly convex qp with equality and inequality constraints: test with no initial guess"
253248
)
@@ -297,7 +292,6 @@ def test_case_no_initial_guess(self):
297292
)
298293

299294
def test_case_no_initial_guess_and_update(self):
300-
301295
print(
302296
"------------------------sparse random strongly convex qp with equality and inequality constraints: test with no initial guess"
303297
)
@@ -386,7 +380,6 @@ def test_case_no_initial_guess_and_update(self):
386380
)
387381

388382
def test_case_warm_starting(self):
389-
390383
print(
391384
"---testing sparse random strongly convex qp with equality and inequality constraints: test with warm start---"
392385
)
@@ -438,7 +431,6 @@ def test_case_warm_starting(self):
438431
)
439432

440433
def test_case_warm_start_with_previous_result(self):
441-
442434
print(
443435
"---testing sparse random strongly convex qp with equality and inequality constraints: test with warm start with previous result---"
444436
)
@@ -564,7 +556,6 @@ def test_case_warm_start_with_previous_result(self):
564556
)
565557

566558
def test_case_cold_start_with_previous_result(self):
567-
568559
print(
569560
"---testing sparse random strongly convex qp with equality and inequality constraints: test with cold start with previous result---"
570561
)
@@ -692,7 +683,6 @@ def test_case_cold_start_with_previous_result(self):
692683
)
693684

694685
def test_case_equilibration_option(self):
695-
696686
print(
697687
"---testing sparse random strongly convex qp with equality and inequality constraints: test equilibration option---"
698688
)
@@ -792,7 +782,6 @@ def test_case_equilibration_option(self):
792782
)
793783

794784
def test_case_equilibration_option_at_update(self):
795-
796785
print(
797786
"---testing sparse random strongly convex qp with equality and inequality constraints: test equilibration option at update---"
798787
)
@@ -957,7 +946,6 @@ def test_case_equilibration_option_at_update(self):
957946
)
958947

959948
def test_case_warm_start_with_other_initialization(self):
960-
961949
print(
962950
"---testing sparse random strongly convex qp with equality and inequality constraints: test warm start with other initialization---"
963951
)
@@ -1008,7 +996,6 @@ def test_case_warm_start_with_other_initialization(self):
1008996
# TESTS ALL INITIAL GUESS OPTIONS FOR MULTIPLE SOLVES AT ONCE
1009997

1010998
def test_case_multiple_solve_with_no_initial_guess(self):
1011-
1012999
print(
10131000
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve with no inital guess---"
10141001
)
@@ -1135,7 +1122,6 @@ def test_case_multiple_solve_with_no_initial_guess(self):
11351122
)
11361123

11371124
def test_case_multiple_solve_with_equality_constrained_initial_guess(self):
1138-
11391125
print(
11401126
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve with equality constrained initial guess---"
11411127
)
@@ -1266,7 +1252,6 @@ def test_case_multiple_solve_with_equality_constrained_initial_guess(self):
12661252
def test_case_warm_start_with_previous_result_starting_with_equality_constraints_initial_guess(
12671253
self,
12681254
):
1269-
12701255
print(
12711256
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve after warm starting with previous results and equality constrained inital guess---"
12721257
)
@@ -1399,7 +1384,6 @@ def test_case_warm_start_with_previous_result_starting_with_equality_constraints
13991384
)
14001385

14011386
def test_case_warm_start_with_previous_result_starting_with_no_initial_guess(self):
1402-
14031387
print(
14041388
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve after warm starting with previous results and no initial guess---"
14051389
)
@@ -1530,7 +1514,6 @@ def test_case_warm_start_with_previous_result_starting_with_no_initial_guess(sel
15301514
)
15311515

15321516
def test_case_cold_start_with_previous_result_starting_with_no_initial_guess(self):
1533-
15341517
print(
15351518
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve after cold starting with previous results and no initial guess---"
15361519
)
@@ -1661,7 +1644,6 @@ def test_case_cold_start_with_previous_result_starting_with_no_initial_guess(sel
16611644
)
16621645

16631646
def test_case_warm_start_with_no_initial_guess(self):
1664-
16651647
print(
16661648
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve from warm start and no initial guess---"
16671649
)
@@ -1793,7 +1775,6 @@ def test_case_warm_start_with_no_initial_guess(self):
17931775
)
17941776

17951777
def test_case_warm_start_with_no_initial_guess_and_different_init(self):
1796-
17971778
print(
17981779
"---testing sparse random strongly convex qp with equality and inequality constraints: test solve from warm start and no initial guess with other initialization---"
17991780
)
@@ -1877,7 +1858,6 @@ def test_case_warm_start_with_no_initial_guess_and_different_init(self):
18771858
# TESTS WITH UPDATE + INITIAL GUESS OPTIONS
18781859

18791860
def test_case_multiple_solve_with_no_initial_guess_and_update(self):
1880-
18811861
print(
18821862
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve with no inital guess and update---"
18831863
)
@@ -2019,7 +1999,6 @@ def test_case_multiple_solve_with_no_initial_guess_and_update(self):
20191999
def test_case_multiple_solve_with_equality_constrained_initial_guess_and_update(
20202000
self,
20212001
):
2022-
20232002
print(
20242003
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve with equality constrained initial guess and update---"
20252004
)
@@ -2163,7 +2142,6 @@ def test_case_multiple_solve_with_equality_constrained_initial_guess_and_update(
21632142
def test_case_warm_start_with_previous_result_starting_with_equality_constraints_initial_guess_and_update(
21642143
self,
21652144
):
2166-
21672145
print(
21682146
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve after warm starting with previous results and equality constrained inital guess and update---"
21692147
)
@@ -2311,7 +2289,6 @@ def test_case_warm_start_with_previous_result_starting_with_equality_constraints
23112289
def test_case_warm_start_with_previous_result_starting_with_no_initial_guess_and_update(
23122290
self,
23132291
):
2314-
23152292
print(
23162293
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve after warm starting with previous results and no initial guess and update---"
23172294
)
@@ -2457,7 +2434,6 @@ def test_case_warm_start_with_previous_result_starting_with_no_initial_guess_and
24572434
def test_case_cold_start_with_previous_result_starting_with_no_initial_guess_and_update(
24582435
self,
24592436
):
2460-
24612437
print(
24622438
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve after cold starting with previous results and no initial guess and update---"
24632439
)
@@ -2590,7 +2566,6 @@ def test_case_cold_start_with_previous_result_starting_with_no_initial_guess_and
25902566
)
25912567

25922568
def test_case_warm_start_with_no_initial_guess_and_update(self):
2593-
25942569
print(
25952570
"---testing sparse random strongly convex qp with equality and inequality constraints: test multiple solve from warm start and no initial guess and update---"
25962571
)
@@ -2732,7 +2707,6 @@ def test_case_warm_start_with_no_initial_guess_and_update(self):
27322707
)
27332708

27342709
def test_case_initialization_with_rho_for_different_initial_guess(self):
2735-
27362710
print(
27372711
"---testing sparse random strongly convex qp with equality and inequality constraints: test initializaton with rho for different initial guess---"
27382712
)
@@ -2952,7 +2926,6 @@ def test_case_initialization_with_rho_for_different_initial_guess(self):
29522926
)
29532927

29542928
def test_case_update_g_for_different_initial_guess(self):
2955-
29562929
print(
29572930
"---testing sparse random strongly convex qp with equality and inequality constraints: test update g for different initial guess---"
29582931
)
@@ -3253,7 +3226,6 @@ def test_case_update_g_for_different_initial_guess(self):
32533226
)
32543227

32553228
def test_case_update_A_for_different_initial_guess(self):
3256-
32573229
print(
32583230
"---testing sparse random strongly convex qp with equality and inequality constraints: test update A for different initial guess---"
32593231
)
@@ -3556,7 +3528,6 @@ def test_case_update_A_for_different_initial_guess(self):
35563528
)
35573529

35583530
def test_case_update_rho_update_for_different_initial_guess(self):
3559-
35603531
print(
35613532
"---testing sparse random strongly convex qp with equality and inequality constraints: test update rho for different initial guess---"
35623533
)

test/src/serialization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def generate_mixed_qp(n, seed=1):
3939

4040

4141
def generic_test(object, filename):
42-
4342
try:
4443
with open(filename, "wb") as f:
4544
pickle.dump(object, f)

test/src/sparse_qp_solve.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def generate_mixed_qp(n, seed=1):
4545

4646

4747
class SparseQpWrapper(unittest.TestCase):
48-
4948
# TESTS DENSE SOLVE FUNCTION
5049

5150
def test_case_basic_solve(self):

0 commit comments

Comments
 (0)