Andrew Murray
a5613663c9
Convert all entries to bytes at once
2025-03-06 22:33:43 +11:00
Andrew Murray
d76d45a28e
Do not add palette entries when reading other lines
2025-03-06 22:33:18 +11:00
Andrew Murray
9c8c7a0a4e
Do not force palette length to be 256
2025-03-06 22:33:18 +11:00
Andrew Murray
18e2877f0b
Only convert to int if there are enough items
2025-03-06 20:49:37 +11:00
Andrew Murray
237aea414f
Use maxsplit
2025-03-06 20:45:49 +11:00
Hugo van Kemenade
1e574e6f8b
Replace slice and comparison with startswith
2025-02-17 23:39:33 +02:00
Andrew Murray
8a3a72e51d
Added type hints
2024-05-18 16:06:50 +10:00
Andrew Murray
a8d154877d
Added type hints
2024-05-13 18:47:51 +10:00
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
pre-commit-ci[bot]
24183d652e
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Hugo van Kemenade
2ae55ccbda
Improve exception traceback readability
2022-12-30 00:07:52 +02:00
Andrew Murray
72b7ab54bd
pre-commit autoupdate --freeze
2022-03-04 16:42:24 +11:00
nulano
d2f7e46c5d
convert comments into docstrings in autodoc files
2020-06-14 14:15:43 +02:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00
Jon Dufresne
d50445ff30
Introduce isort to automate import ordering and formatting
...
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.
Uses the configuration recommended by the Black to avoid conflicts of
style.
Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
53a7e35004
Format with Black
2019-06-10 18:22:46 +03:00
Andrew Murray
7c154f52fa
Replaced while with for loop
2019-04-01 11:32:51 +11:00
Andrew Murray
2a403860d1
Removed condition that was always true
2019-04-01 11:30:23 +11:00
wiredfool
0bb3f4fee9
source layout reorg
2017-12-28 14:49:47 +00:00