File tree Expand file tree Collapse file tree 6 files changed +16
-18
lines changed Expand file tree Collapse file tree 6 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ please setup the git filter by executing
113
113
114
114
in the repository.
115
115
116
- We implement several other checks in order to maintain a consistent code style. We do this using [ pre-commit`]( https://pre-commit.com) , execute
116
+ We implement several other checks in order to maintain a consistent code style. We do this using ` pre-commit < https://pre-commit.com >`_ , execute
117
117
118
118
.. code :: bash
119
119
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ def approximating_intervals(self):
390
390
391
391
def tell (self , point , value ):
392
392
if point not in self .x_mapping :
393
- raise ValueError ("Point {} doesn't belong to any interval" . format ( point ) )
393
+ raise ValueError (f "Point { point } doesn't belong to any interval" )
394
394
self .done_points [point ] = value
395
395
self .pending_points .discard (point )
396
396
Original file line number Diff line number Diff line change @@ -751,4 +751,4 @@ def _get_ncores(ex):
751
751
ex .bootup () # wait until all workers are up and running
752
752
return ex ._pool .size # not public API!
753
753
else :
754
- raise TypeError ("Cannot get number of cores for {}" . format ( ex .__class__ ) )
754
+ raise TypeError (f "Cannot get number of cores for { ex .__class__ } " )
Original file line number Diff line number Diff line change @@ -204,9 +204,7 @@ def test_tell_in_random_order(first_add_33=False):
204
204
assert all (ival .a == other_ival .a for ival , other_ival in zip (* ivals ))
205
205
206
206
# Test if the approximating_intervals are the same
207
- ivals = [
208
- {(i .a , i .b ) for i in learner .approximating_intervals } for l in learners
209
- ]
207
+ ivals = [{(i .a , i .b ) for i in l .approximating_intervals } for l in learners ]
210
208
assert ivals [0 ] == ivals [1 ]
211
209
212
210
# Test whether the igral is identical
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def generate_random_parametrization(f):
75
75
_ , * params = inspect .signature (f ).parameters .items ()
76
76
if any (not callable (v .annotation ) for (p , v ) in params ):
77
77
raise TypeError (
78
- "All parameters to {} must be annotated with functions." . format ( f . __name__ )
78
+ f "All parameters to { f . __name__ } must be annotated with functions."
79
79
)
80
80
realization = {p : v .annotation () for (p , v ) in params }
81
81
return ft .partial (f , ** realization )
Original file line number Diff line number Diff line change 1
1
name : adaptive
2
2
3
3
channels :
4
- - conda-forge
4
+ - conda-forge
5
5
6
6
dependencies :
7
- - python=3.7
7
+ - python=3.7.3
8
+ - sortedcollections=1.1.2
9
+ - scikit-optimize=0.5.2
10
+ - scipy=1.2.1
11
+ - holoviews=1.11.3
12
+ - bokeh=1.0.4
13
+ - plotly=3.9.0
14
+ - ipywidgets=7.4.2
8
15
- pip :
9
- - sortedcollections
10
- - scipy
11
- - holoviews==1.12*
12
- - bokeh==1.1*
13
- - plotly
14
- - ipywidgets
15
- - scikit-optimize
16
16
- git+https://github.com/basnijholt/jupyter-sphinx.git@widgets_execute
17
- - sphinx_fontawesome
18
- - m2r
17
+ - sphinx_fontawesome==0.0.6
18
+ - m2r==0.2.1
You can’t perform that action at this time.
0 commit comments