Commit Graph

21 Commits

Author SHA1 Message Date
jo b7214b5d46 feat: add sentry sdk 2023-03-14 14:59:45 +00:00
jo 5738edb49c chore: split test and coverage tasks 2022-12-07 15:59:52 +02:00
jo 33e13e877e chore: don't use venv activation in makefile 2022-12-07 15:59:52 +02:00
jo b93e1e5570 chore: install local python deps in editable mode 2022-07-27 15:35:57 +02:00
Jonas L 2b973b2695
chore(api): don't scan tests files with bandit (#1989) 2022-07-25 21:20:45 +02:00
jo 26a2c2dda0 chore: update python tests target 2022-06-30 13:24:05 +02:00
jo e5cb21c0e2 chore(api): add make schema-foreach-commit command 2022-06-29 13:51:07 +02:00
jo 0104799b59 ci(api): fail job on linting error 2022-06-29 06:04:31 +02:00
jo b10696265f ci: check and dispatch api schema changes
- check if api schema is outdated
- do not cancel in progress workflow
  Since this workflow commit to an external repo, it might squash multiple changes into a single commit.
- dispatch each schema update to client repo
- cache pip dependencies
2022-06-18 12:13:11 +02:00
Jonas L 9d0c098684
test(api): use pytest to run api tests (#1645) 2022-06-09 16:26:47 +02:00
jo 3d7083f602 chore(api): format schema using prettier 2022-04-26 08:10:39 +02:00
Kyle Robbertze beebe79edd
ci: generate schema and push to api-client repo (#1740)
* chore(api): add schema generation make target

* ci: generate schema and push to api-client repo
2022-04-08 15:38:58 +02:00
Jonas L fce988aef1
feat(api): split api into multiple apps (#1626)
Fixes #1622

- split the api into 4 apps: core, history, schedule, storage
- exploded the settings into testing/prod
2022-04-04 14:38:50 +02:00
jo 924b7f8f46 test(api): add bandit linter check 2022-02-14 21:01:35 +02:00
jo 7988b7467b test: allow to set python linters to fail per app 2022-01-26 10:15:35 +02:00
jo e84137a8ee chore: fixes after libretime_api rename 2022-01-04 09:18:58 +02:00
Kyle Robbertze 6ca1ca2aec
feat: run API tests in CI (#1421)
* feat: run API tests in CI

* fix: remove incorrect test for guest user viewing themself
2021-10-18 14:17:34 +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 d12e232a6f Add format target in makefiles 2021-09-13 14:43:18 +02:00
jo 3dbc1205d0 Start linting with mypy 2021-09-10 15:14:48 +02:00
jo ceb40ee216 Use shared python makefile and start linting
Always update setuptools/wheel/pip

Never fail while linting

We use github annotations to impove the code incrementally.
2021-09-10 15:14:46 +02:00