e30676f889
Feature: Migrate import/export to rich progress ( #12260 )
...
* Refactor: migrate exporter/importer from tqdm to PaperlessCommand.track()
Replace direct tqdm usage in document_exporter and document_importer with
the PaperlessCommand base class and its track() method, which is backed by
Rich and handles --no-progress-bar automatically. Also removes the unused
ProgressBarMixin from mixins.py.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
* Refactor: add explicit supports_progress_bar and supports_multiprocessing to all PaperlessCommand subclasses
Each management command now explicitly declares both class attributes
rather than relying on defaults, making intent unambiguous at a glance.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-09 08:59:17 -07:00
Trenton H and GitHub
c30ee1ec03
Feature: Switch progress bar library to rich ( #12169 )
2026-02-26 12:20:21 -08:00
Sebastian Steinbeißer and GitHub
3b5ffbf9fa
Chore(mypy): Annotate None returns for typing improvements ( #11213 )
2026-02-02 08:44:12 -08:00
Trenton H and GitHub
4813a7bc70
Chore: Adds additional rules for Ruff linter ( #5660 )
2024-02-05 21:46:59 +00:00
Trenton H and GitHub
e8527ba723
Chore: Cleanup command arguments and standardize process count handling ( #4541 )
...
Cleans up some command help text and adds more control over process count for command with a Pool
2023-11-09 11:46:37 -08:00
Trenton Holmes
b7577038a0
Replace usages of os.rename with shutil.move to properly handle cases where the source and dest arent't on the same filesystem
2023-05-01 07:28:52 -07:00
Trenton H
6f163111ce
Upgrades black to v23, upgrades ruff
2023-04-26 09:35:27 -07:00
Trenton H
3bcbd05252
Fixes ruff not running isort against the codebase
2023-04-26 09:35:27 -07:00
Trenton H
ce41ac9158
Configures ruff as the one stop linter and resolves warnings it raised
2023-04-01 17:03:52 -07:00
Trenton Holmes
1df517afd3
Removes last vestiges of PNG from the tests, code, docs and samples
2022-06-11 14:20:50 -07:00
Trenton Holmes
e8868d7ebf
Entirely removes the optipng, updates ghostscript fall back to also use WebP. Updates the conversion to use a multiprocessing pool
2022-06-11 08:38:49 -07:00
Trenton Holmes
7d9a9033f9
Fixes the re-generation of thumbnails making webp file, but named as PNG files
2022-06-10 13:17:41 -07:00
Trenton Holmes
1771d18a21
Runs the pre-commit hooks over all the Python files
2022-03-11 11:34:28 -08:00
kpj
fc695896dd
Format Python code with black
2022-02-27 15:26:41 +01:00
Stéphane Brunner
dc26c9b7cc
Add --no-progress-bar option to commands
2021-04-18 16:16:11 +02:00
jonaswinkler
8d6071e977
fix a bug with thumbnail generation when TIKA was enabled
2021-02-09 22:12:43 +01:00
jonaswinkler
0d3ab3aaf7
remove lots of unused code
2021-02-04 23:40:53 +01:00
jonaswinkler
73682d22d6
test cases
2021-01-05 13:50:27 +01:00
jonaswinkler
a0f983f05d
codestyle
2020-12-30 17:20:03 +01:00
jonaswinkler
400392655e
adds a command to regenerate thumbnails #218
2020-12-30 15:46:56 +01:00