Skip to content

Commit

Permalink
Merge pull request #1379 from syucream/fix/update-python-tools
Browse files Browse the repository at this point in the history
Update some python tools
  • Loading branch information
hinashi authored Mar 5, 2025
2 parents 12e5ca2 + 949f3a2 commit 42505d0
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 192 deletions.
12 changes: 3 additions & 9 deletions api_v1/entry/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def post(self, request):
return Response(
{
"reason": (
"Data overflow was happened. " "Please narrow down intermediate conditions"
"Data overflow was happened. Please narrow down intermediate conditions"
)
},
status=status.HTTP_400_BAD_REQUEST,
Expand Down Expand Up @@ -210,10 +210,7 @@ def get(self, request):
)
except ValueError:
return Response(
(
"The older_than parameter accepts for following format "
"'YYYY-MM-DDTHH:MM:SS'"
),
("The older_than parameter accepts for following format 'YYYY-MM-DDTHH:MM:SS'"),
status=status.HTTP_400_BAD_REQUEST,
)

Expand All @@ -230,10 +227,7 @@ def get(self, request):
)
except ValueError:
return Response(
(
"The newer_than parameter accepts for following format "
"'YYYY-MM-DDTHH:MM:SS'"
),
("The newer_than parameter accepts for following format 'YYYY-MM-DDTHH:MM:SS'"),
status=status.HTTP_400_BAD_REQUEST,
)

Expand Down
2 changes: 1 addition & 1 deletion entry/api_v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def post(self, request: Request) -> Response:
return Response(
{
"reason": (
"Data overflow was happened. " "Please narrow down intermediate conditions"
"Data overflow was happened. Please narrow down intermediate conditions"
)
},
status=status.HTTP_400_BAD_REQUEST,
Expand Down
2 changes: 1 addition & 1 deletion entry/tests/test_api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_get_entries_with_special_characters(self):
"/",
"?",
"_",
" " "&",
" &",
"|",
]

Expand Down
2 changes: 1 addition & 1 deletion entry/tests/test_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2868,7 +2868,7 @@ def test_import_invalid_data(self):
"non_field_errors": [
{
"code": "AE-121000",
"message": "Expected a list of items but got type " '"dict".',
"message": 'Expected a list of items but got type "dict".',
}
]
},
Expand Down
5 changes: 1 addition & 4 deletions entry/tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -5250,10 +5250,7 @@ def test_import_entry_with_abnormal_entry_which_has_multiple_attrs_of_same_name(
# Check expected log was dispatched
self.assertEqual(
cm.output[0],
(
"ERROR:airone:[task.import_entry] "
"Abnormal entry was detected(entry:%d)" % entry.id
),
("ERROR:airone:[task.import_entry] Abnormal entry was detected(entry:%d)" % entry.id),
)

# Check Job processing was ended successfully
Expand Down
340 changes: 171 additions & 169 deletions poetry.lock

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,16 @@ social-auth-app-django = "5.4.1"
social-auth-core = "4.5.1"
uritemplate = "3.0.1"
whitenoise = "5.2.0"
pydantic = "^2.6.4"

pydantic = "^2.10.6"

[tool.poetry.group.dev.dependencies]
coverage = "^7.3.0"
mypy = "^1.13.0"
mypy = "^1.15.0"
requests-html = "0.10.0"
types-requests = "^2.31.0.2"
types-pyyaml = "^6.0.12.11"
types-pytz = "^2023.3.0.1"
types-requests = "^2.31.0.6"
types-pyyaml = "^6.0.12.20241230"
types-pytz = "^2025.1.0.20250204"
types-mock = "^5.1.0.1"
ruff = "^0.8.0"
ruff = "^0.9.9"
tblib = "^3.0.0"
lxml-html-clean = "^0.4.0"

0 comments on commit 42505d0

Please sign in to comment.