Skip to content

Commit

Permalink
fix: fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
micha91 committed Oct 16, 2024
1 parent 07bdc25 commit 73fc935
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ repos:
- capellambse==0.6.6
- click
- jinja2
- polarion-rest-api-client==1.1.3
- polarion-rest-api-client==1.2.0
- pydantic
- types-requests
- types-PyYAML
Expand Down
2 changes: 0 additions & 2 deletions capella2polarion/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import dataclasses
import hashlib
import json
import typing as t

import polarion_rest_api_client as polarion_api

Expand Down Expand Up @@ -57,7 +56,6 @@ def calculate_checksum(self) -> str:
data = dict(sorted(data.items()))

converted = json.dumps(data).encode("utf8")
# pylint: disable=attribute-defined-outside-init
self.checksum = json.dumps(
{"__C2P__WORK_ITEM": hashlib.sha256(converted).hexdigest()}
| dict(sorted(attachment_checksums.items()))
Expand Down
4 changes: 2 additions & 2 deletions tests/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -1648,8 +1648,8 @@ def test_diagram(model: capellambse.MelodyModel):
"uuid_capella": TEST_ACTOR_UUID,
"description": polarion_api.HtmlContent(
markupsafe.Markup(
"<p>Principal of Hogwarts, wearer of the elder wand "
"and greatest mage of all time.</p>\n"
"<p>Principal of Hogwarts, wearer of the elder"
" wand and greatest mage of all time.</p>\n"
)
),
},
Expand Down

0 comments on commit 73fc935

Please sign in to comment.