Skip to content

Commit eaca09f

Browse files
authored
Merge pull request #1 from pymc-devs/main
Sync forked repo
2 parents 9d4691c + 4e378ca commit eaca09f

File tree

103 files changed

+7401
-2564
lines changed

Some content is hidden

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

103 files changed

+7401
-2564
lines changed

.github/workflows/arviz_compat.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@ jobs:
6565
- name: Run tests
6666
run: |
6767
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
68+
- name: Upload coverage to Codecov
69+
uses: codecov/codecov-action@v2
70+
with:
71+
env_vars: TEST_SUBSET
72+
name: ArviZ compat - ${{ matrix.os }} ${{ matrix.floatx }}
73+
fail_ci_if_error: false

.github/workflows/jaxtests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,9 @@ jobs:
6262
- name: Run tests
6363
run: |
6464
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
65+
- name: Upload coverage to Codecov
66+
uses: codecov/codecov-action@v2
67+
with:
68+
env_vars: TEST_SUBSET
69+
name: JAX tests - ${{ matrix.os }} ${{ matrix.floatx }}
70+
fail_ci_if_error: false

.github/workflows/pytest.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
--ignore=pymc/tests/test_dist_math.py
4747
--ignore=pymc/tests/test_minibatches.py
4848
--ignore=pymc/tests/test_pickling.py
49-
--ignore=pymc/tests/test_plots.py
5049
--ignore=pymc/tests/test_updates.py
5150
--ignore=pymc/tests/test_gp.py
5251
--ignore=pymc/tests/test_model.py
@@ -68,7 +67,6 @@ jobs:
6867
pymc/tests/test_dist_math.py
6968
pymc/tests/test_minibatches.py
7069
pymc/tests/test_pickling.py
71-
pymc/tests/test_plots.py
7270
pymc/tests/test_updates.py
7371
pymc/tests/test_transforms.py
7472
@@ -141,10 +139,10 @@ jobs:
141139
conda activate pymc-test-py37
142140
python -m pytest -vv --cov=pymc --cov-append --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
143141
- name: Upload coverage to Codecov
144-
uses: codecov/codecov-action@v1
142+
uses: codecov/codecov-action@v2
145143
with:
146-
env_vars: OS,PYTHON
147-
name: codecov-umbrella
144+
env_vars: TEST_SUBSET
145+
name: ${{ matrix.os }} ${{ matrix.floatx }}
148146
fail_ci_if_error: false
149147
windows:
150148
strategy:
@@ -223,3 +221,9 @@ jobs:
223221
run: >-
224222
conda activate pymc-test-py38 &&
225223
python -m pytest -vv --cov=pymc --cov-append --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET%
224+
- name: Upload coverage to Codecov
225+
uses: codecov/codecov-action@v2
226+
with:
227+
env_vars: TEST_SUBSET
228+
name: ${{ matrix.os }} ${{ matrix.floatx }}
229+
fail_ci_if_error: false

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release-job:
1010
runs-on: ubuntu-latest
1111
env:
12-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
12+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_PYMC }}
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Set up Python
@@ -39,7 +39,7 @@ jobs:
3939
- name: Publish to PyPI
4040
run: |
4141
twine check dist/*
42-
twine upload --repository pypi --username __token__ --password ${PYPI_TOKEN} dist/*
42+
twine upload --repository pypi --username __token__ --password ${PYPI_TOKEN_PYMC} dist/*
4343
test-install-job:
4444
needs: release-job
4545
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ tags
1818
# Sphinx
1919
_build
2020
docs/jupyter_execute
21+
docs/**/generated/*
2122

2223
# Merge tool
2324
*.orig

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: ^(docs/logos|pymc/tests/data)/
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.0.1
4+
rev: v4.1.0
55
hooks:
66
- id: check-merge-conflict
77
- id: check-toml
@@ -19,16 +19,16 @@ repos:
1919
- id: isort
2020
name: isort
2121
- repo: https://github.com/asottile/pyupgrade
22-
rev: v2.29.1
22+
rev: v2.31.0
2323
hooks:
2424
- id: pyupgrade
2525
args: [--py37-plus]
2626
- repo: https://github.com/psf/black
27-
rev: 21.11b1
27+
rev: 21.12b0
2828
hooks:
2929
- id: black
3030
- repo: https://github.com/PyCQA/pylint
31-
rev: v2.12.1
31+
rev: v2.12.2
3232
hooks:
3333
- id: pylint
3434
args: [--rcfile=.pylintrc]

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ docker exec -it pymc jupyter notebook list
146146
## Style guide
147147

148148
We have configured a pre-commit hook that checks for `black`-compliant code style.
149-
We encourage you to configure the pre-commit hook as described in the [PyMC Python Code Style Wiki Page](https://github.com/pymc-devs/pymc/wiki/Python-Code-Style), because it will automatically enforce the code style on your commits.
149+
We encourage you to configure the pre-commit hook as described in the [PyMC Python Code Style Wiki Page](https://docs.pymc.io/en/latest/contributing/python_style.html), because it will automatically enforce the code style on your commits.
150150

151-
Similarly, consult the [PyMC's Jupyter Notebook Style](https://github.com/pymc-devs/pymc/wiki/PyMC-Jupyter-Notebook-Style-Guide) guides for notebooks.
151+
Similarly, consult the [PyMC's Jupyter Notebook Style](https://docs.pymc.io/en/latest/contributing/jupyter_style.html) guides for notebooks.
152152

153153
For documentation strings, we *prefer* [numpy style](https://numpydoc.readthedocs.io/en/latest/format.html) to comply with the style that predominates in our upstream dependencies.
154154

0 commit comments

Comments
 (0)