Skip to content

Commit

Permalink
Merge pull request #298 from Haidra-Org/main
Browse files Browse the repository at this point in the history
fix: allow extra attribs for HordeAPIObject
  • Loading branch information
tazlin authored Nov 23, 2024
2 parents dd4a5fe + e68e623 commit d772c22
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
rev: v0.7.2
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.2'
rev: 'v1.13.0'
hooks:
- id: mypy
args: [., --strict, --ignore-missing-imports, --exclude=^codegen]
Expand Down
14 changes: 11 additions & 3 deletions horde_sdk/generic_api/apimodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,17 @@ def get_api_model_name(cls) -> str | None:
If none, there is no payload, such as for a GET request.
"""

model_config = ConfigDict(
frozen=True,
use_attribute_docstrings=True,
model_config = (
ConfigDict(
frozen=True,
use_attribute_docstrings=True,
extra="allow",
)
if not os.getenv("TESTS_ONGOING")
else ConfigDict(
frozen=True,
use_attribute_docstrings=True,
)
)


Expand Down
10 changes: 5 additions & 5 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pytest==8.3.3
mypy==1.11.2
black==24.8.0
ruff==0.6.8
tox~=4.20.0
pre-commit~=3.8.0
mypy==1.13.0
black==24.10.0
ruff==0.7.2
tox~=4.23.2
pre-commit~=4.0.1
build>=0.10.0
coverage>=7.2.7

Expand Down

0 comments on commit d772c22

Please sign in to comment.