Skip to content

Commit

Permalink
Pass tests and update schema creation script line
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanjmcdougall committed Jan 9, 2025
1 parent c0d33aa commit 52790ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/usethis/_integrations/bitbucket/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# filename: schema.json
# timestamp: 2025-01-08T09:46:09+00:00
# using the command:
# datamodel-codegen --input tests\usethis\_integrations\bitbucket\schema.json --input-file-type jsonschema --output src\usethis\_integrations\bitbucket\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.12
# datamodel-codegen --input tests\usethis\_integrations\bitbucket\schema.json --input-file-type jsonschema --output src\usethis\_integrations\bitbucket\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.11
# ruff: noqa: ERA001
# pyright: reportGeneralTypeIssues=false
# plus manually add Definitions.scripts for type hinting
Expand Down
2 changes: 1 addition & 1 deletion src/usethis/_integrations/pre_commit/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# filename: schema.json
# timestamp: 2024-12-13T02:06:43+00:00
# using the command:
# datamodel-codegen --input tests\usethis\_integrations\pre_commit\schema.json --input-file-type jsonschema --output src\usethis\_integrations\pre_commit\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.12
# datamodel-codegen --input tests\usethis\_integrations\pre_commit\schema.json --input-file-type jsonschema --output src\usethis\_integrations\pre_commit\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.11
# ruff: noqa: ERA001
# pyright: reportGeneralTypeIssues=false
# plus manually remove default for LocalRepo.repo
Expand Down
2 changes: 1 addition & 1 deletion tests/usethis/_integrations/bitbucket/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def test_matches_schema_store(self):

def test_target_python_version(self):
# If this test fails, we should bump the version in the command in schema.py
assert Path(".python-version").read_text().startswith("3.12")
assert Path(".python-version").read_text().startswith("3.11")
2 changes: 1 addition & 1 deletion tests/usethis/_integrations/pre_commit/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ def test_matches_schema_store(self):

def test_target_python_version(self):
# If this test fails, we should bump the version in the command in schema.py
assert Path(".python-version").read_text().startswith("3.12")
assert Path(".python-version").read_text().startswith("3.11")

0 comments on commit 52790ce

Please sign in to comment.