Repository navigation
Commit b839f93
committed
ci: enforce
The job named `lint-and-format-check` only ever ran `make format`, so ruff's
linter was never enforced anywhere except pre-commit -- which runs on changed
files only. Three violations reached master as a result, and `make lint` has
been failing on a clean checkout.
Fixes all three, then adds the missing step so the job does what its name says:
- sse_client.py `_is_retryable_exc` ended with an `if isinstance(...): return
True` / `return False` pair (SIM103). Collapsed to returning the isinstance
directly; the comment explaining why RemoteProtocolError is retryable moves
above the return and is unchanged.
- test_agentic_runner.py imported `AGENTIC_TEST_KINDS` and `AgenticEvalOutcome`
inside two test bodies (PLC0415, twice). Both names were already imported at
module top -- `AgenticEvalOutcome` identically, `AGENTIC_TEST_KINDS` from a
module the file already imports from -- so the local imports were redundant,
not deliberate deferrals. Removed, and AGENTIC_TEST_KINDS added to the
existing top-level import.
No behaviour change: the isinstance chain returns the same value for every
input, and the moved imports resolve to the same objects.
jira: trivial
risk: lowmake lint and fix the three violations it was hiding1 parent a1b29d9 commit b839f93
3 files changed
Lines changed: 9 additions & 12 deletions
File tree
- .github/workflows
- packages/gooddata-eval
- src/gooddata_eval/core/chat
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| |||
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
197 | | - | |
198 | | - | |
199 | 195 | | |
200 | 196 | | |
201 | 197 | | |
| |||
0 commit comments