Commit Graph

16 Commits

Author SHA1 Message Date
jo 81f38fc9c6 fix(api_client): comply to legacy schedule events
- remove 5 seconds to stream_buffer_start start event key,
- use explicit variables names,
- split schedule events into multiple functions
- stream_output_start ends at the end of the scheduled period (fix #1556).
2022-03-06 15:17:44 +02:00
Jonas L d55e58e416
chore: auto generate requirements.txt (#1651)
- force LC_ALL for the sort command
2022-02-28 20:02:01 +02:00
jo d42615eb6a feat(api_client): load config using shared helpers 2022-02-25 11:42:28 +02:00
jo 8a11a583ff test(api_client): add bandit linter check 2022-02-14 21:01:35 +02:00
jo 803152cb85 fix(api_client): properly enclose events in media dict 2022-02-02 17:13:52 +02:00
jo 51499f251f fix(api_client): use same date format as schedule key
The webstream end event are ignored by playout if they do not follow the right datetime format.
2022-02-02 15:15:24 +02:00
jo 32cb67806a chore: add pyupgrade pre-commit hook
- add --py3-plus flag to pyupgrade hook
- add --py36-plus flag to pyupgrade hook
2022-01-27 10:37:48 +02:00
jo 9de82bb568 chore: make linters config consistent in pyproject.toml
- remove mypy config from makefile
2022-01-26 10:15:35 +02:00
jo 7988b7467b test: allow to set python linters to fail per app 2022-01-26 10:15:35 +02:00
jo 0f8cb1a5ed chore: set python build system in pyproject.toml
- fix local package install
- local packages requirement url format
2022-01-26 10:15:35 +02:00
jo 441028a1d2 chore: make setup.py file chdir consistent 2022-01-26 10:15:35 +02:00
jo c04287b7c4 chore: fixes after libretime_api_client rename 2022-01-04 09:18:58 +02:00
jo be09f74af6 chore: rename api_clients dir to libretime_api_client 2022-01-04 09:18:58 +02:00
Jonas L 30b3470a06
Better format enforcing (#1391)
* Add shared python format-check target

* Add .format-check to api lint target

* Format api code with makefile format target

* Add .format-check to tools lint target

* Add .format-check to analyzer lint target

* Format analyzer code with makefile format target

* Add .format-check to celery lint target

* Add .format-check to api_client lint target

* Format api_client code with makefile format target

* Add .format-check to playout lint target

* Run CI linting in parallel

* Disable isort in pre-commit
2021-10-17 16:24:37 +02:00
jo 8fe0156d4f Update paths after api_client move 2021-10-17 08:02:47 +00:00
jo d06c898bcf Move python_apps/api_clients/ to api_client/ 2021-10-17 08:02:47 +00:00