Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1000"]
Expand All @@ -24,26 +24,26 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.15.12
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, pyi, jupyter]

- repo: https://github.com/psf/black
rev: 24.8.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1
hooks:
- id: black
language_version: python3

- repo: https://github.com/asottile/blacken-docs
rev: 1.18.0
rev: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies: [black==24.4.2]

- repo: https://github.com/pycqa/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8
exclude: docs/source/conf.py, __pycache__
Expand All @@ -62,7 +62,7 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.20.2
hooks:
- id: mypy
files: predictably-core/
Expand All @@ -89,27 +89,27 @@ repos:
# additional_dependencies: ["bandit[toml]"]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.2
hooks:
- id: codespell
types_or: [python, rst, markdown]
additional_dependencies:
- tomli

- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
rev: v2.0.0
hooks:
- id: doc8
args: ["--max-line-length=88", "--config=pyproject.toml", "docs"]
additional_dependencies: ["tomli"]

- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.9.1
rev: v1.0.2
hooks:
- id: sphinx-lint

- repo: https://github.com/numpy/numpydoc
rev: v1.8.0
rev: v1.10.0
hooks:
- id: numpydoc-validation
exclude: |
Expand Down
6 changes: 1 addition & 5 deletions predictably_core/core/_pprint/_object_html_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,7 @@ def _write_base_object_html(
#$id div.sk-text-repr-fallback {
display: none;
}
""".replace(
" ", ""
).replace(
"\n", ""
)
""".replace(" ", "").replace("\n", "")


def _object_html_repr(base_object: prc._base.BaseOBject) -> str:
Expand Down
2 changes: 1 addition & 1 deletion predictably_core/utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def remove_type_text(input_: str | type) -> str:
if not isinstance(input_, str):
input_ = str(input_)

m = re.match("^<class '(.*)'>$", input_)
m = re.match(r"^<class '(.*)'>$", input_)

if m:
return m[1]
Expand Down
Loading