Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit a145044

Browse files
committed
Overwatch test 1
1 parent f77e387 commit a145044

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,11 @@ lint.install.local:
6363
uv add --dev ruff
6464

6565
lint.run:
66-
ruff check
6766
ruff format
6867

6968
lint.check:
7069
echo "Linting..."
71-
ruff check
7270
echo "Formatting..."
73-
ruff format --check
7471

7572
build.requirements:
7673
# if docker pull succeeds, we have already build this version of

services/components.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ def component_filtered_report(
3131
"""
3232
Filter a report such that the totals, etc. are only pertaining to the given component.
3333
"""
34+
print(report)
35+
print(components)
36+
37+
# This will fail mypy with "Item "None" of "Optional[Report]" has no attribute "filter""
38+
# Because we're not checking if report is None before accessing filter()
39+
report: Optional[Report] = report
40+
filtered_report = report.filter(flags=flags, paths=paths)
41+
3442
flags, paths = [], []
3543
for component in components:
3644
flags.extend(component.get_matching_flags(report.flags.keys()))

0 commit comments

Comments
 (0)