Commit d77a0f2
committed
fix: resolve F824 flake8 errors - remove unnecessary global declarations
Removed unused `global _scrapetui_module` declarations from three test files.
These global statements were flagged by flake8 F824 because the variable
itself was never reassigned in scope - only its attributes were modified.
In Python, you don't need `global` to modify attributes of a module-level
object; it's only needed when reassigning the variable itself.
Files fixed:
- tests/test_analytics.py:38
- tests/test_performance.py:55
- tests/test_scheduling.py:39
Verification:
- flake8 critical errors (E9,F63,F7,F82): 0 ✅
- pytest test suite: 307/307 passing (100%) ✅
- No test functionality affected
Resolves GitHub Actions workflow failures in runs:
- #18236485813 (2025-10-04)
- #18236145310 (2025-10-03)
- #18235535859 (2025-10-03)1 parent 504e226 commit d77a0f2
File tree
3 files changed
+0
-3
lines changed- tests
3 files changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
0 commit comments