Commit Graph

105 Commits

Author SHA1 Message Date
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
Corentin Sechet 089ac78067 common: remove old file 2022-03-29 23:00:16 +02:00
Corentin Sechet 9e00279149 common: Separate cache from source, to prepare config caching 2022-03-29 11:03:48 +02:00
Corentin Sechet a111cefb01 common: Make next_source of local_override optional 2022-03-28 18:30:48 +02:00
Corentin Sechet ba74429a36 common: Add source configuration 2022-03-28 18:26:50 +02:00
Corentin Sechet 1b11fd2eae lint: Fix lint and dev environment setup 2022-03-28 16:52:56 +02:00
Corentin Sechet a389da81a4 chore: Switch to nox, read config from python file 2022-03-28 16:22:18 +02:00
Corentin Sechet ff30346bbd config: Use marshpy annotations resolver 2022-03-25 23:38:01 +01:00
Corentin Sechet 9a83273b1f fix entry point in project.toml 2022-03-25 22:02:40 +01:00
Corentin Sechet 1efaa4452c add help for config file option 2022-03-25 22:02:29 +01:00
Corentin Sechet 5d1667faab load config from argument or standard directories 2022-03-25 18:47:36 +01:00
Corentin Sechet d51cf72848 rename to frontools 2022-03-25 18:22:37 +01:00
Corentin Sechet d72fb515c7 add config file loading 2022-03-25 16:09:06 +01:00
Corentin Sechet 32391037da generate diff of local and remote css 2022-03-25 15:04:21 +01:00
Corentin Sechet 5f4f61c2b4 move cache to it's own module 2022-03-25 13:36:38 +01:00
Corentin Sechet d316cbf72f move screenshot code to it's own module 2022-03-25 13:29:03 +01:00
Corentin Sechet c9cec2cc73 compare: generate screenshot with and without local css 2022-03-25 13:00:27 +01:00
Corentin Sechet e305f309be common: cache pages when requesting them 2022-03-22 18:03:23 +01:00
Corentin Sechet 8b7609c369 infra: add stub method to get website list 2022-03-22 17:39:45 +01:00
Corentin Sechet c8ce7b87a5 chore: remove pycodestyle useless config key 2022-03-22 17:39:30 +01:00
Corentin Sechet 27a199b69e chore: switched to setup.py to project.toml 2022-03-22 17:26:51 +01:00
Corentin Sechet 350f3ede00 compare: pass screenshot output directory as command option 2022-03-21 17:40:11 +01:00