| 
							
							
								 Andrew Murray | 6cc5f1f0ad | Simplified code | 2025-03-19 20:58:40 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 3607d1ade3 | Use match argument | 2025-03-05 00:03:37 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | f4db366e41 | Merge branch 'main' into px | 2025-02-07 08:51:58 +11:00 |  | 
			
				
					| 
							
							
								![pre-commit-ci[bot]](/avatar/131bb96d326461aea7edbfa1b0e095f7?size=56) pre-commit-ci[bot] | 955d678ca2 | [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci | 2025-02-03 17:36:01 +00:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 23083f28ab | Use monkeypatch | 2024-12-28 14:02:19 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 5d5543b35c | Assert that load() does not return None | 2024-12-23 11:57:27 +11:00 |  | 
			
				
					| 
							
							
								 Hugo van Kemenade | 9308f11ebe | Merge pull request #8231 from radarhere/ppm_i16 | 2024-09-04 14:46:31 +03:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 882a196a8f | Removed unused ignores | 2024-07-20 18:59:27 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 8e730e17ae | Allow saving I;16 images as PPM | 2024-07-13 13:00:58 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 42381aa1e6 | Added type hints | 2024-06-24 06:59:00 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | cc83cc8ec8 | Updated type hints | 2024-06-22 10:09:11 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 3ba8eb3b7e | Raise a ValueError for negative values when loading P1-P3 PPM images | 2024-03-16 12:29:21 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | d6a3f89e27 | Open 16-bit grayscale PNGs as I;16 | 2024-03-02 15:39:43 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | bb1fece57a | Added type hints | 2024-01-31 21:55:32 +11:00 |  | 
			
				
					| 
							
							
								 Hugo van Kemenade | 4a4b90c365 | Autotype tests (#7756) * autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path | 2024-01-31 20:12:58 +11:00 |  | 
			
				
					| 
							
							
								 Hugo van Kemenade | 53c3cd9f8e | isort Tests | 2024-01-20 13:23:03 +02:00 |  | 
			
				
					| 
							
							
								 Nulano | 5dd1652f27 | use filename instead of f | 2024-01-08 17:17:52 +01:00 |  | 
			
				
					| 
							
							
								 Nulano | 0d841aab9a | add support for grayscale pfm image format | 2024-01-06 14:08:51 +01:00 |  | 
			
				
					| 
							
							
								 Hugo van Kemenade | 43b2f61e79 | Add 'from __future__ import annotations' using Ruff/isort | 2023-12-21 13:13:31 +02:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 5932a0bd19 | Clear half token after use | 2023-04-01 09:23:57 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 64e5baaaf1 | Write in binary format | 2022-10-23 15:17:54 +11:00 |  | 
			
				
					| 
							
							
								![pre-commit-ci[bot]](/avatar/131bb96d326461aea7edbfa1b0e095f7?size=56) pre-commit-ci[bot] | c93413835d | [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci | 2022-10-13 02:22:53 +00:00 |  | 
			
				
					| 
							
							
								 Mark Mayo | 69baeccf2e | some pylint warnings Fixed some pylint issues | 2022-10-13 15:20:11 +13:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 6eb6232f04 | Test comment that ends in the same block | 2022-06-14 21:39:55 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 216cd374dd | Parametrized tests | 2022-06-14 21:39:26 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | c4d51fb268 | Added support for PPM arbitrary maxval in plain formats | 2022-06-13 19:55:25 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 5051a29a4e | Merge branch 'main' into plainPPM | 2022-06-12 16:11:17 +10:00 |  | 
			
				
					| 
							
							
								 Hugo van Kemenade | 87c2373265 | Merge pull request #6242 from radarhere/ppm_maxval | 2022-05-01 21:21:52 +03:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 81b473f9d2 | Raise ValueError for invalid maxval | 2022-04-30 10:37:50 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 5867e0bbac | Decode bytes before passing to f-string | 2022-04-24 15:42:45 +10:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 55be0ae6f4 | Parametrized test | 2022-03-14 08:07:13 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 073acd4c82 | Moved decoder names out of MODES | 2022-03-12 17:32:15 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 4283a604c0 | Added support for arbitrary maxval | 2022-03-09 22:29:45 +11:00 |  | 
			
				
					| 
							
							
								![pre-commit-ci[bot]](/avatar/131bb96d326461aea7edbfa1b0e095f7?size=56) pre-commit-ci[bot] | 0215175e1d | [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci | 2022-03-06 02:39:09 +00:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 97982cf703 | Replaced assert_image_equal with assert_image_equal_tofile | 2022-03-04 17:09:33 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 7aa7d850ee | Added context managers | 2022-03-04 17:08:10 +11:00 |  | 
			
				
					| 
							
							
								 Piolie | c1744e8536 | Add tests for plain PPM | 2022-03-04 17:03:07 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | d96830115f | Updated tests | 2022-03-04 15:22:41 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 65edcc4f77 | Merge branch 'main' into PPMheaders | 2022-03-04 12:30:41 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 1b397751ec | Added context managers | 2021-08-24 23:43:38 +10:00 |  | 
			
				
					| 
							
							
								 Yutao Yuan | 0f11d22cce | Add tests for saving to stdout | 2021-08-10 19:12:20 +08:00 |  | 
			
				
					| 
							
							
								 Piolie | 8ad5172e88 | Fix wrong extension in temp test files | 2021-03-21 02:16:39 -03:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 41a439da7d | Added context managers | 2021-03-21 14:42:36 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | a5c251029c | Replaced various instances of assert_image_equal with assert_image_equal_tofile | 2021-02-21 22:15:56 +11:00 |  | 
			
				
					| 
							
							
								 Andrew Murray | 83542c42bf | Added context managers | 2021-02-11 21:43:54 +11:00 |  | 
			
				
					| 
							
							
								 Piolie | bc5ecfb79c | Make minor changes to tests - add test for maxcolors;
- extend coverage for wrong magic number;
- fix linting. | 2021-01-06 14:53:30 -03:00 |  | 
			
				
					| 
							
							
								 Piolie | 002e0bd697 | Add tests for token size and wrong magic number | 2021-01-06 01:21:35 -03:00 |  | 
			
				
					| 
							
							
								 Piolie | 5d0ad5e2e9 | Revert exception types to ValueError | 2021-01-06 01:21:01 -03:00 |  | 
			
				
					| 
							
							
								 Piolie | 699afe1e89 | Improve PPM tests | 2020-12-21 22:39:32 -03:00 |  | 
			
				
					| 
							
							
								 Hugo van Kemenade | dd87dd50c0 | Update to isort 5 with Black profile support | 2020-08-08 22:39:29 +03:00 |  |