Commit Graph

76 Commits

Author SHA1 Message Date
Corentin Sechet ae22aa4c41 common: add ability to load urls from nodes 2022-04-12 13:27:45 +02:00
Corentin Sechet f7863d59f4 common: update flake8 2022-04-12 13:14:35 +02:00
Corentin Sechet 7f5d3cd283 utils: postpone log print after progress bar 2022-04-12 13:14:25 +02:00
Corentin Sechet 5741d4656c common: add flag to force theme index update 2022-04-12 13:02:17 +02:00
Corentin Sechet 8cad4c798f common: add theme_index class to handle config loading and caching 2022-04-12 12:55:01 +02:00
Corentin Sechet 4cb58652d9 caches: remove overengineered cache code 2022-04-12 11:52:17 +02:00
Corentin Sechet b3f1e4823e css: remove css commands for now 2022-04-12 11:42:20 +02:00
Corentin Sechet 9de6689954 sources: remove unused function 2022-04-12 11:40:34 +02:00
Corentin Sechet 832c903e81 common: clean code 2022-04-12 11:35:10 +02:00
Corentin Sechet 5125e02d3c common: rename sites to theme 2022-04-12 11:14:46 +02:00
Corentin Sechet 1be03e7067 screenshot: move get_default_screenshot_dir to screenshot module 2022-04-12 10:45:51 +02:00
Corentin Sechet 98fbfe63ab common: fix lint errors 2022-04-12 10:36:14 +02:00
Corentin Sechet 4f9dd27045 common: add support for filtering url by tags 2022-04-12 00:58:01 +02:00
Corentin Sechet ccade0bf6e config: search config file in home directory 2022-04-11 17:39:45 +02:00
Corentin Sechet a9d28df9ad cache: move prune-cache function to FileCache 2022-04-11 17:32:41 +02:00
Corentin Sechet 3194388616 common: load site list from yaml, remove cache crap 2022-04-11 17:31:16 +02:00
Corentin Sechet ae0024f343 common: delete stale file 2022-04-11 16:40:15 +02:00
Corentin Sechet 134828ea87 common: black format 2022-04-11 16:31:19 +02:00
Corentin Sechet 4abebfddab cache: limit file name to 255 characters 2022-04-11 15:35:22 +02:00
Corentin Sechet 554d9b0d09 sources: ignore non existent files in OverrideSource 2022-04-11 15:34:27 +02:00
Corentin Sechet 51253e4a37 sources: catch generic errors from playwright 2022-04-11 15:34:27 +02:00
Corentin Sechet aa854141b9 sources: catch timeout error on page load 2022-04-11 15:34:27 +02:00
Corentin Sechet 171b570e12 sources: Retrying in case of a timeout error 2022-04-11 14:56:45 +02:00
Corentin Sechet 9afe5d3701 screenshot: only give screen width as argument, as screenshot take full pages 2022-04-11 14:49:57 +02:00
Corentin Sechet 5bfc487c22 common: add error_summary accessible in source to report connection errors 2022-04-11 14:29:50 +02:00
Corentin Sechet 3620f4f79e cache: avoid directory / file name collision 2022-04-11 14:01:29 +02:00
Corentin Sechet bb5b21d145 common: add context class to handle error summary 2022-04-11 13:56:57 +02:00
Corentin Sechet 936248c3ce screenshot: change ouptut file path, append site name 2022-04-11 13:40:58 +02:00
Corentin Sechet fc3b44b620 common: add ability to include / exclude url patterns 2022-04-11 13:35:24 +02:00
Corentin Sechet 4ab22c1288 screenshot: remove unused include 2022-04-11 13:35:07 +02:00
Corentin Sechet b22fe14751 cache: add prune cache command 2022-04-11 13:03:17 +02:00
Corentin Sechet 9ef40a3a12 cli: use pass_obj instead off pass_context for commands 2022-04-11 12:38:03 +02:00
Corentin Sechet 52c07a934c screenshot: fix bug with Pillow when comparing two images with alpha channel 2022-04-11 12:32:28 +02:00
Corentin Sechet fa8db96601 chore: add coverage to gitignore 2022-04-11 12:23:00 +02:00
Corentin Sechet 763becd8a4 common: use a wrapper for browser context, as route on the context raise exception but on page not 2022-04-11 12:22:33 +02:00
Corentin Sechet b2c320503b screenshot: save only files where there is a diff 2022-04-08 14:32:05 +02:00
Corentin Sechet 5373c9b10a screenshot: wait for networkidle before screenshotting 2022-04-08 14:15:10 +02:00
Corentin Sechet dc23b0b669 utils: allow to specify number of workers 2022-04-08 14:12:34 +02:00
Corentin Sechet 35fd02566f screenshot: allow to define resolution 2022-04-08 14:07:42 +02:00
Corentin Sechet d77a52500d screenshot: fix automatic screenshoting 2022-04-08 13:53:09 +02:00
Corentin Sechet ad04e79b59 common: make browser use sources 2022-04-05 16:34:45 +02:00
Corentin Sechet 3d307e7c99 utils: Add some helper methods 2022-03-30 02:39:56 +02:00
Corentin Sechet b6542235ce lint: switch mypy to strict 2022-03-30 02:19:02 +02:00
Corentin Sechet 2bd37c541f common: use aiohttp 2022-03-30 01:22:16 +02:00
Corentin Sechet 3760041e67 utils: add report_progress helper 2022-03-30 01:03:31 +02:00
Corentin Sechet 7f430ebc28 common: fix bug 2022-03-30 00:53:24 +02:00
Corentin Sechet d10244c182 package: add script to pyproject.toml 2022-03-30 00:53:14 +02:00
Corentin Sechet 5ac58a52dd common: Fix get_url_slug 2022-03-29 23:40:37 +02:00
Corentin Sechet 1244eca37b common: allow to pass plain values as cache fallback 2022-03-29 23:18:57 +02:00
Corentin Sechet 0b8bd30a8d common: give fallback as an argument of cache.get 2022-03-29 23:09:58 +02:00