Skip to content

Commit c204131

Browse files
committed
Merge branch 'add-zerosumnormal' of https://github.com/pymc-devs/pymc into add-zerosumnormal
2 parents b50909e + 09d849c commit c204131

Some content is hidden

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

83 files changed

+5755
-1732
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pymc/_version.py export-subst

.github/workflows/tests.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "*.py"
99
- "conda-envs/**"
1010
- "codecov.yml"
11+
- "requirements*.txt"
1112
- "scripts/*.sh"
1213
push:
1314
branches: [main]
@@ -41,45 +42,45 @@ jobs:
4142
pymc/tests/distributions/test_logprob.py
4243
pymc/tests/test_aesaraf.py
4344
pymc/tests/test_math.py
44-
pymc/tests/test_posdef_sym.py
45-
pymc/tests/test_ndarray_backend.py
45+
pymc/tests/backends/test_ndarray.py
4646
pymc/tests/test_hmc.py
4747
pymc/tests/test_func_utils.py
4848
pymc/tests/distributions/test_shape_utils.py
49-
pymc/tests/test_starting.py
5049
pymc/tests/distributions/test_mixture.py
5150
5251
- |
5352
pymc/tests/distributions/test_distribution.py
54-
pymc/tests/distributions/test_bound.py
55-
pymc/tests/distributions/test_censored.py
5653
pymc/tests/distributions/test_discrete.py
5754
pymc/tests/distributions/test_continuous.py
5855
pymc/tests/distributions/test_multivariate.py
56+
57+
- |
58+
pymc/tests/distributions/test_bound.py
59+
pymc/tests/distributions/test_censored.py
5960
pymc/tests/distributions/test_simulator.py
61+
pymc/tests/distributions/test_truncated.py
6062
6163
- |
62-
pymc/tests/test_tuning.py
64+
pymc/tests/tuning/test_scaling.py
65+
pymc/tests/tuning/test_starting.py
6366
pymc/tests/test_shared.py
6467
pymc/tests/test_types.py
65-
66-
- |
67-
pymc/tests/test_modelcontext.py
6868
pymc/tests/distributions/test_dist_math.py
69-
pymc/tests/test_minibatches.py
70-
pymc/tests/test_pickling.py
7169
pymc/tests/distributions/test_transform.py
7270
pymc/tests/test_parallel_sampling.py
7371
pymc/tests/test_printing.py
7472
7573
- |
7674
pymc/tests/distributions/test_timeseries.py
77-
pymc/tests/test_gp.py
75+
pymc/tests/gp/test_cov.py
76+
pymc/tests/gp/test_gp.py
77+
pymc/tests/gp/test_mean.py
78+
pymc/tests/gp/test_util.py
7879
pymc/tests/test_model.py
7980
pymc/tests/test_model_graph.py
80-
pymc/tests/test_ode.py
81-
pymc/tests/test_profile.py
82-
pymc/tests/test_quadpotential.py
81+
pymc/tests/ode/test_ode.py
82+
pymc/tests/ode/test_utils.py
83+
pymc/tests/step_methods/hmc/test_quadpotential.py
8384
8485
fail-fast: false
8586
runs-on: ${{ matrix.os }}
@@ -147,8 +148,8 @@ jobs:
147148
python-version: ["3.8"]
148149
test-subset:
149150
- pymc/tests/test_variational_inference.py pymc/tests/test_initial_point.py
150-
- pymc/tests/test_pickling.py pymc/tests/test_profile.py pymc/tests/test_step.py
151-
- pymc/tests/test_gp.py pymc/tests/test_ode.py pymc/tests/test_smc.py pymc/tests/test_parallel_sampling.py
151+
- pymc/tests/test_model.py pymc/tests/test_step.py
152+
- pymc/tests/gp/test_cov.py pymc/tests/gp/test_gp.py pymc/tests/gp/test_mean.py pymc/tests/gp/test_util.py pymc/tests/ode/test_ode.py pymc/tests/ode/test_utils.py pymc/tests/test_smc.py pymc/tests/test_parallel_sampling.py
152153
- pymc/tests/test_sampling.py pymc/tests/test_posteriors.py
153154

154155
fail-fast: false
@@ -220,15 +221,15 @@ jobs:
220221
test-subset:
221222
- |
222223
pymc/tests/test_parallel_sampling.py
223-
pymc/tests/test_data_container.py
224+
pymc/tests/test_data.py
224225
pymc/tests/test_missing.py
225226
226227
- |
227228
pymc/tests/test_sampling.py
228229
229230
- |
230-
pymc/tests/test_idata_conversion.py
231-
pymc/tests/test_updates.py
231+
pymc/tests/backends/test_arviz.py
232+
pymc/tests/variational/test_updates.py
232233
fail-fast: false
233234
runs-on: ${{ matrix.os }}
234235
env:
@@ -361,7 +362,7 @@ jobs:
361362
floatx: [float32]
362363
python-version: ["3.10"]
363364
test-subset:
364-
- pymc/tests/test_sampling.py pymc/tests/test_ode.py
365+
- pymc/tests/test_sampling.py pymc/tests/ode/test_ode.py pymc/tests/ode/test_utils.py
365366
fail-fast: false
366367
runs-on: ${{ matrix.os }}
367368
env:

.pre-commit-config.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
exclude: ^requirements-dev\.txt$
1515
- id: trailing-whitespace
1616
- repo: https://github.com/pre-commit/mirrors-mypy
17-
rev: v0.971
17+
rev: v0.981
1818
hooks:
1919
- id: mypy
2020
name: Run static type checks
@@ -26,8 +26,8 @@ repos:
2626
- types-filelock
2727
- types-setuptools
2828
- arviz
29-
- aesara==2.8.2
30-
- aeppl==0.0.35
29+
- aeppl==0.0.36
30+
- aesara==2.8.6
3131
always_run: true
3232
require_serial: true
3333
pass_filenames: false
@@ -37,26 +37,28 @@ repos:
3737
- id: isort
3838
name: isort
3939
- repo: https://github.com/asottile/pyupgrade
40-
rev: v2.37.3
40+
rev: v2.38.2
4141
hooks:
4242
- id: pyupgrade
4343
args: [--py37-plus]
4444
- repo: https://github.com/psf/black
45-
rev: 22.6.0
45+
rev: 22.8.0
4646
hooks:
4747
- id: black
4848
- id: black-jupyter
4949
- repo: https://github.com/PyCQA/pylint
50-
rev: v2.15.0
50+
rev: v2.15.3
5151
hooks:
5252
- id: pylint
5353
args: [--rcfile=.pylintrc]
5454
files: ^pymc/
55+
exclude: (?x)(pymc/_version.py)
5556
- repo: https://github.com/MarcoGorelli/madforhooks
5657
rev: 0.3.0
5758
hooks:
5859
- id: no-print-statements
5960
files: ^pymc/
61+
exclude: (?x)(pymc/_version.py)
6062
- repo: local
6163
hooks:
6264
- id: check-no-tests-are-ignored
@@ -77,6 +79,7 @@ repos:
7779
entry: from \.[\.\w]* import
7880
types: [python]
7981
language: pygrep
82+
exclude: (?x)(pymc/_version.py|versioneer.py)
8083
- id: no-internal-links
8184
name: Check no links that should be cross-references are in the docs
8285
description: >-

GOVERNANCE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,10 @@ In addition, Council members are given administrative rights to all repositories
656656
the [pymc-devs](https://github.com/pymc-devs) organization.
657657

658658
##### Communication Focused Repositories
659-
Some repositories on Github may be used primarily for internal knowledge store and communication, rather than content tha tis curated, published, or released _by the project_ for external users.
659+
Some repositories on Github may be used primarily for internal knowledge store and communication, rather than content that is curated, published, or released _by the project_ for external users.
660660

661661
The permissions of such repositories will be set in order to allow the same participation and access levels we use on private project communication channels like Slack.
662-
Therefore, similarly to slack, these repositories will be private and write permissions will be given to all recurrent contributors (that is, anyone with access to slack).
662+
Therefore, similarly to Slack, these repositories will be private and write permissions will be given to all recurrent contributors (that is, anyone with access to Slack).
663663

664664
#### Discourse
665665
Similar to the above section, Discourse permissions are also mapped to the community team
@@ -718,7 +718,7 @@ provide examples on how to assign permissions:
718718
* Added to the PyMC_core Discourse group
719719
* Added to all private communication channels
720720
* Triage permissions on all repositories
721-
* Access to PyMC gmail, drive and grant application platforms (i.e. CZI slack) as they are the main grant writing coordinator
721+
* Access to PyMC Gmail, Drive and grant application platforms (i.e. CZI Slack) as they are the main grant writing coordinator
722722

723723
</details>
724724

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ include requirements.txt
66
include *.md *.rst
77
include scripts/*.sh
88
include LICENSE
9+
include versioneer.py

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,18 @@ help:
5252

5353
clean:
5454
rm -rf $(BUILDDIR)/*
55+
rm -rf $(SOURCEDIR)/api/generated
5556
rm -rf $(SOURCEDIR)/api/**/generated
5657
rm -rf $(SOURCEDIR)/api/**/classmethods
58+
rm -rf $(SOURCEDIR)/contributing/private_api/generated
5759
rm -rf $(SOURCEDIR)/contributing/private_api/**/generated
5860
rm -rf $(SOURCEDIR)/contributing/private_api/**/classmethods
5961
rm -rf docs/jupyter_execute
6062

6163
html:
6264
$(SPHINXBUILD) $(SOURCEDIR) $(BUILDDIR) -b html
6365
@echo
64-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
66+
@echo "Build finished. The HTML pages are in $(BUILDDIR)."
6567

6668
dirhtml:
6769
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@@ -199,4 +201,4 @@ pseudoxml:
199201
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
200202

201203
serve: html
202-
cd $(BUILDDIR)/html && python -m http.server
204+
python -m http.server --directory $(BUILDDIR)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Getting started
3939
If you already know about Bayesian statistics:
4040
----------------------------------------------
4141

42-
- `API quickstart guide <https://docs.pymc.io/en/stable/pymc-examples/examples/pymc3_howto/api_quickstart.html>`__
42+
- `API quickstart guide <https://www.pymc.io/projects/examples/en/latest/howto/api_quickstart.html>`__
4343
- The `PyMC tutorial <https://docs.pymc.io/en/latest/learn/core_notebooks/pymc_overview.html>`__
4444
- `PyMC examples <https://www.pymc.io/projects/examples/en/latest/gallery.html>`__ and the `API reference <https://docs.pymc.io/en/stable/api.html>`__
4545

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ coverage:
2323

2424
ignore:
2525
- "pymc/tests/*"
26+
- "pymc/_version.py"
2627

2728
comment:
2829
layout: "reach, diff, flags, files"

conda-envs/environment-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ channels:
55
- defaults
66
dependencies:
77
# Base dependencies
8-
- aeppl=0.0.35
9-
- aesara=2.8.2
8+
- aeppl=0.0.36
9+
- aesara=2.8.6
1010
- arviz>=0.12.0
1111
- blas
1212
- cachetools>=4.2.1

conda-envs/environment-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ channels:
55
- defaults
66
dependencies:
77
# Base dependencies
8-
- aeppl=0.0.35
9-
- aesara=2.8.2
8+
- aeppl=0.0.36
9+
- aesara=2.8.6
1010
- arviz>=0.12.0
1111
- blas
1212
- cachetools>=4.2.1

0 commit comments

Comments
 (0)