Skip to content

Commit 5d4f469

Browse files
[pre-commit.ci] pre-commit autoupdate (#7191)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](astral-sh/ruff-pre-commit@v0.2.2...v0.3.2) * [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 244fb97 commit 5d4f469

File tree

22 files changed

+26
-28
lines changed

22 files changed

+26
-28
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
- --exclude=binder/
2828
- --exclude=versioneer.py
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.2.2
30+
rev: v0.3.2
3131
hooks:
3232
- id: ruff
3333
args: ["--fix", "--output-format=full"]

docs/source/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
""" Sphinx configuration file.
2-
3-
"""
1+
"""Sphinx configuration file."""
42
#!/usr/bin/env python3
53
#
64
# pymc documentation build configuration file, created by

pymc/backends/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
Saved backends can be loaded using `arviz.from_netcdf`
6161
6262
"""
63+
6364
from collections.abc import Mapping, Sequence
6465
from copy import copy
6566
from typing import Optional, Union

pymc/backends/arviz.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
"""PyMC-ArviZ conversion code."""
15+
1516
import logging
1617
import warnings
1718

pymc/backends/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
1717
See the docstring for pymc.backends for more information
1818
"""
19+
1920
import itertools as itl
2021
import logging
2122
import warnings

pymc/backends/ndarray.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
Store sampling values in memory as a NumPy array.
1818
"""
1919

20-
2120
from typing import Any, Optional
2221

2322
import numpy as np

pymc/blocking.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
1818
Classes for working with subsets of parameters.
1919
"""
20+
2021
from __future__ import annotations
2122

2223
from collections.abc import Sequence

pymc/distributions/dist_math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
1818
@author: johnsalvatier
1919
"""
20+
2021
import warnings
2122

2223
from collections.abc import Iterable

pymc/distributions/shape_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
A collection of common shape operations needed for broadcasting
1818
samples from probability distributions for stochastic nodes in PyMC.
1919
"""
20+
2021
import warnings
2122

2223
from collections.abc import Sequence

pymc/model/core.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,9 @@ def __init__(self, mean=0, sigma=1, name=''):
475475

476476
if TYPE_CHECKING:
477477

478-
def __enter__(self: Self) -> Self:
479-
...
478+
def __enter__(self: Self) -> Self: ...
480479

481-
def __exit__(self, exc_type: None, exc_val: None, exc_tb: None) -> None:
482-
...
480+
def __exit__(self, exc_type: None, exc_val: None, exc_tb: None) -> None: ...
483481

484482
def __new__(cls, *args, **kwargs):
485483
# resolves the parent instance

0 commit comments

Comments
 (0)