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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ repos:
- id: pretty-format-json
args: ["--autofix"]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 8.0.1
rev: 9.0.0a3
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
Expand All @@ -42,6 +42,6 @@ repos:
- id: bandit
args: ["-c", "bandit.yaml"]
- repo: https://github.com/python-poetry/poetry
rev: "2.3.2"
rev: "2.4.0"
hooks:
- id: poetry-check
6 changes: 2 additions & 4 deletions src/camp/engine/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ def load_ruleset(
feature_defs = ruleset.feature_model_types()
if not _verify_feature_model_class(feature_defs):
raise ValueError(
textwrap.dedent(
f"""Feature definition must be a pydantic model or union
of pydantic models, but got `{feature_defs}` instead."""
)
textwrap.dedent(f"""Feature definition must be a pydantic model or union
of pydantic models, but got `{feature_defs}` instead.""")
)
feature_types = _feature_model_map(feature_defs)
feature_dict: dict[str, base_models.BaseFeatureDef] = {}
Expand Down
Loading