Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ways committed Nov 25, 2024
1 parent a272e62 commit cc6b7b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sedr/preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def parse_conformance(url: str, timeout: int, landing_json) -> bool:
util.logger.warning("Conformance page <%s> is not valid JSON.", url)
return False

resolves, resolves_message = util.test_conformance_links(jsondata=conformance_json, timeout=util.args.timeout)
resolves, resolves_message = util.test_conformance_links(
jsondata=conformance_json, timeout=util.args.timeout
)
if not resolves and util.args.strict:
util.logger.error(resolves_message)
if util.args.strict:
Expand Down
2 changes: 1 addition & 1 deletion sedr/rodeoprofile10.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def requirement7_1(jsondata: dict) -> tuple[bool, str]:
"""
Check if the conformance page contains the required EDR classes.
jsondata should be a valid conformance page json dict.
"""
spec_url = f"{spec_base_url}#_requirements_class_core"
Expand Down
4 changes: 3 additions & 1 deletion sedr/test_rodeoprofile10.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def test_requirement7_2(self):
self.assertTrue(ok)

# Bad tests
with open("testdata/edrisobaric_landing-bad-desc.json", "r", encoding="utf-8") as f:
with open(
"testdata/edrisobaric_landing-bad-desc.json", "r", encoding="utf-8"
) as f:
landing_json = json.load(f)
ok, _ = profile.requirement7_2(landing_json, timeout=10)
self.assertFalse(ok)
Expand Down

0 comments on commit cc6b7b2

Please sign in to comment.