Commit 863b21f
committed
fix: unblock the pre-push gates (clippy, ruff, failure_policy config)
- degenbot_rs: drop a redundant struct-field name and two useless i128
conversions that failed the clippy -D warnings gate
- _render.py: reflow an f-string line past the 100-col ruff limit
- config.py: register the ADR-040 [failure_policy] override table on
DegenbotConfig. The Rust core reads this table directly from
config.toml (empty = default matrix), but pydantic-settings'
extra=forbid rejected any config file carrying it, so every Python
path through load_config_from_file (incl. the RPC cascade) failed
against a config the Rust side accepts. Bucket/action-name validation
stays boot-time in the Rust core; Python only carries the table.1 parent c2a5f96 commit 863b21f
5 files changed
Lines changed: 13 additions & 5 deletions
File tree
- rust/crates/degenbot-python/src/bot
- engine
- src/degenbot
- runner
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2384 | 2384 | | |
2385 | 2385 | | |
2386 | 2386 | | |
2387 | | - | |
| 2387 | + | |
2388 | 2388 | | |
2389 | 2389 | | |
2390 | 2390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
0 commit comments