Skip to content

chore: fix typing errors with new mypy version

CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) failed Feb 18, 2025 in 54s

CodeScene PR Check

Quality Gate Failed

Gates Failed
Prevent hotspot decline (1 hotspot with Code Duplication)
Enforce advisory code health rules (1 file with Code Duplication)

Gates Passed
2 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Prevent hotspot decline Violations Code Health Impact
test_checks_command.py 1 rule in this hotspot 10.00 → 9.39 Suppress
Enforce advisory code health rules Violations Code Health Impact
test_checks_command.py 1 advisory rule 10.00 → 9.39 Suppress

Quality Gate Profile: Clean Code Collective
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

Details

🚩 Declining Code Health (highest to lowest):

  • Code Duplication test_checks_command.py 🔥

Annotations

Check warning on line 55 in tests/test_checks_command.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

❌ New issue: Code Duplication

The module contains 2 functions with similar structure: TestCommandActivity.test_reports_activity_if_the_command_succeeds,TestCommandActivity.test_reports_no_activity_if_the_command_fails. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.