Skip to content

Commit d1ebb00

Browse files
authored
fix missing newlines (#4105)
1 parent a276aac commit d1ebb00

25 files changed

+12
-28
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ benchmarks/results/
4141
pytestdebug.log
4242
.dir-locals.el
4343
.pycheckers
44-

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: end-of-file-fixer
26
- repo: https://github.com/nbQA-dev/nbQA
37
rev: 0.1.29
48
hooks:

benchmarks/benchmarks/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
15-

docs/source/Gaussian_Processes.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,5 +259,3 @@ variables that can now be used like any other random variable in PyMC3.
259259

260260
Check the notebooks for detailed demonstrations of the usage of GP functionality
261261
in PyMC3.
262-
263-

docs/source/api/backends.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ tracetab
3838

3939
.. automodule:: pymc3.backends.tracetab
4040
:members:
41-

docs/source/api/data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Data
55
.. currentmodule:: pymc3.data
66

77
.. automodule:: pymc3.data
8-
:members:
8+
:members:

docs/source/api/distributions/utilities.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ Distribution utility classes and functions
2626

2727
.. autofunction:: draw_values
2828
.. autofunction:: generate_samples
29-

docs/source/api/model.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Model
44
.. currentmodule:: pymc3.model
55
.. automodule:: pymc3.model
66
:members:
7-

docs/source/api/model_graph.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ Graphing Models
44
.. currentmodule:: pymc3.model_graph
55
.. automodule:: pymc3.model_graph
66
:members:
7-

docs/source/api/ode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ This submodule contains tools used to perform inference on ordinary differential
99
.. autosummary::
1010

1111
.. automodule:: pymc3.ode
12-
:members: DifferentialEquation
12+
:members: DifferentialEquation

docs/source/api/variables.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ The normal PyMC3 programmer will typically not need to interact with these class
2525

2626
.. autoclass:: TransformedRV
2727
:members:
28-

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,3 @@ def setup(app):
334334
"https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"
335335
)
336336
app.add_css_file("default.css")
337-

docs/source/semantic_sphinx/static/highlight.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/source/semantic_sphinx/static/semantic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pymc3/distributions/bound.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,3 @@ def dist(self, *args, **kwargs):
316316
)
317317
else:
318318
raise ValueError("Distribution is neither continuous nor discrete.")
319-

pymc3/distributions/dist_math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,4 +599,4 @@ def clipped_beta_rvs(a, b, size=None, dtype="float64"):
599599
"""
600600
out = scipy.stats.beta.rvs(a, b, size=size).astype(dtype)
601601
lower, upper = _beta_clip_values[dtype]
602-
return np.maximum(np.minimum(out, upper), lower)
602+
return np.maximum(np.minimum(out, upper), lower)

pymc3/examples/data/anemones.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ x,y,marks
229229
120,167,3
230230
22,178,7
231231
134,171,5
232-
230,172,4
232+
230,172,4

pymc3/examples/data/cty.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3192,4 +3192,4 @@ stfips,ctfips,st,cty,lon,lat,Uppm
31923192
56,039,WY,TETON,-110.589, 43.934,2.39226
31933193
56,041,WY,UINTA,-110.547, 41.288,2.31204
31943194
56,043,WY,WASHAKIE,-107.682, 43.905,2.63989
3195-
56,045,WY,WESTON,-104.567, 43.841,2.18167
3195+
56,045,WY,WESTON,-104.567, 43.841,2.18167

pymc3/gp/mean.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,3 @@ def __init__(self, first_mean, second_mean):
105105

106106
def __call__(self, X):
107107
return tt.mul(self.m1(X), self.m2(X))
108-

pymc3/tests/test_dist_math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,4 @@ def test_clipped_beta_rvs(dtype):
225225
# Verify that the samples drawn from the beta distribution are never
226226
# equal to zero or one (issue #3898)
227227
values = clipped_beta_rvs(0.01, 0.01, size=1000000, dtype=dtype)
228-
assert not (np.any(values == 0) or np.any(values == 1))
228+
assert not (np.any(values == 0) or np.any(values == 1))

pymc3/tests/test_hmc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ def test_nuts_error_reporting(caplog):
6464
pymc3.HalfNormal('b', sigma=1, transform=None)
6565
trace = pymc3.sample(init='adapt_diag', chains=1)
6666
assert "Bad initial energy, check any log probabilities that are inf or -inf: a -inf\nb" in caplog.text
67-

pymc3/tests/test_math.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,3 @@ def test_expand_packed_triangular():
217217
assert np.all(
218218
expand_diag_upper.eval({packed: upper_packed}) == floatX(np.diag(vals))
219219
)
220-

pymc3/tests/test_model_func.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,3 @@ def test_mapping():
6464
randarray = np.random.randn(*parray.shape)
6565
randpoint = model.bijection.rmap(randarray)
6666
assert lp(randpoint) == lparray(randarray)
67-
68-
69-

pymc3/tests/test_model_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,3 @@ def test_graphviz(self):
9292
g = model_to_graphviz(self.model)
9393
for key in self.compute_graph:
9494
assert key in g.source
95-

pymc3/tests/test_step.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,4 +1323,3 @@ def test_multiple_subsampling_rates(self):
13231323
coarse_models=[coarse_model_0, coarse_model_1],
13241324
subsampling_rates=[3, 4, 10],
13251325
)
1326-

0 commit comments

Comments
 (0)