Commit 4ae5cd2
committed
Fix Ruff lint errors
This commit fixes the following lint errors:
```console
pp@DESKTOP-89OPGF3 MINGW64 /c/temp/kaitai_struct/runtime/python (master)
$ ruff --version
ruff 0.14.10
pp@DESKTOP-89OPGF3 MINGW64 /c/temp/kaitai_struct/runtime/python (master)
$ ruff check --statistics $(git ls-files '*.py')
3 E501 line-too-long
Found 3 errors.
pp@DESKTOP-89OPGF3 MINGW64 /c/temp/kaitai_struct/runtime/python (master)
$ ruff check $(git ls-files '*.py')
E501 Line too long (92 > 88)
--> kaitaistruct.py:489:89
|
487 | actual = self._io.read(len(expected))
488 | if actual != expected:
489 | msg = f"unexpected fixed contents: got {actual!r}, was waiting for {expected!r}"
| ^^^^
490 | # NOTE: this method has always raised `Exception` directly and is now
491 | # unused and slated for removal, so there's no point in "fixing" it.
|
E501 Line too long (101 > 88)
--> kaitaistruct.py:533:89
|
531 | num_bytes_left = full_size - pos
532 | if n > num_bytes_left:
533 | msg = f"requested to write {n} bytes, but only {num_bytes_left} bytes left in the stream"
| ^^^^^^^^^^^^^
534 | raise EndOfStreamError(msg, n, num_bytes_left)
|
E501 Line too long (109 > 88)
--> kaitaistruct.py:1105:89
|
1103 | def __init__(self):
1104 | super().__init__(
1105 | "consistency not checked: _check() has not been called since the last modification of the object"
| ^^^^^^^^^^^^^^^^^^^^^
1106 | )
|
Found 3 errors.
```line-too-long (E501)1 parent 85c545d commit 4ae5cd2
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
490 | 493 | | |
491 | 494 | | |
492 | 495 | | |
| |||
530 | 533 | | |
531 | 534 | | |
532 | 535 | | |
533 | | - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
534 | 540 | | |
535 | 541 | | |
536 | 542 | | |
| |||
1102 | 1108 | | |
1103 | 1109 | | |
1104 | 1110 | | |
1105 | | - | |
| 1111 | + | |
| 1112 | + | |
1106 | 1113 | | |
0 commit comments