Commit 49bce8c
committed
chore(builder,loader): ruff 0.2.0 fixes
src/tmuxp/workspace/builder.py:302:20: RUF019 [*] Unnecessary key check before dictionary access
src/tmuxp/workspace/builder.py:305:16: RUF019 [*] Unnecessary key check before dictionary access
src/tmuxp/workspace/builder.py:409:16: RUF019 [*] Unnecessary key check before dictionary access
src/tmuxp/workspace/builder.py:527:16: RUF019 [*] Unnecessary key check before dictionary access
src/tmuxp/workspace/loader.py:209:31: SIM910 [*] Use `workspace_dict.get("start_directory")` instead of `workspace_dict.get("start_directory", None)`
src/tmuxp/workspace/loader.py:211:24: SIM910 [*] Use `workspace_dict.get("suppress_history")` instead of `workspace_dict.get("suppress_history", None)`
Found 6 errors.
[*] 6 fixable with the `--fix` option.1 parent 3fbacdd commit 49bce8c
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments