Compare commits

...

91 Commits

Author SHA1 Message Date
8e5dae82f8 Merge pull request 'chore(deps): update dependency uvicorn to ^0.30.0' (#208) from renovate/uvicorn-0.x into master
All checks were successful
divent / lint (push) Successful in 1m26s
divent / docker (push) Successful in 33s
divent / pypi (push) Has been skipped
Reviewed-on: #208
2024-05-29 07:03:09 +00:00
Renovate Bot
69ffcdf8c6 chore(deps): update dependency uvicorn to ^0.30.0
All checks were successful
divent / lint (push) Successful in 1m56s
divent / docker (push) Successful in 1m55s
divent / pypi (push) Has been skipped
2024-05-29 06:47:43 +00:00
7893499305 fix: 👷 use default branch for building image
All checks were successful
divent / lint (push) Successful in 1m24s
divent / docker (push) Successful in 1m12s
divent / pypi (push) Has been skipped
2024-05-20 17:48:28 +02:00
b0f10a7933 chore: 🔖 update version
Some checks failed
divent / docker (push) Blocked by required conditions
divent / pypi (push) Blocked by required conditions
divent / lint (push) Has been cancelled
2024-05-20 17:46:41 +02:00
a979940e2b chore: ⬆️ udpate deps
All checks were successful
divent / lint (push) Successful in 1m36s
divent / docker (push) Successful in 1m21s
divent / pypi (push) Successful in 44s
2024-05-20 17:44:59 +02:00
8aa15a6ed0 Merge pull request 'chore(deps): update dependency quart to v0.19.6' (#207) from renovate/quart-0.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m50s
divent / docker (push) Successful in 50s
divent / pypi (push) Has been skipped
Reviewed-on: #207
2024-05-20 15:08:00 +00:00
Renovate Bot
f62742d62a chore(deps): update dependency quart to v0.19.6
All checks were successful
divent / lint (push) Successful in 2m3s
divent / docker (push) Successful in 1m22s
divent / pypi (push) Has been skipped
2024-05-20 06:47:10 +00:00
194435f04d Merge pull request 'chore(deps): update dependency disnake to v2.9.2' (#206) from renovate/disnake-2.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m24s
divent / docker (push) Successful in 1m15s
divent / pypi (push) Has been skipped
Reviewed-on: #206
2024-05-19 20:49:33 +00:00
Renovate Bot
6867f220f5 chore(deps): update dependency disnake to v2.9.2
All checks were successful
divent / lint (push) Successful in 2m19s
divent / docker (push) Successful in 1m48s
divent / pypi (push) Has been skipped
2024-05-19 06:48:42 +00:00
d045afc9d8 Merge pull request 'chore(deps): update dependency black to v24.4.2' (#205) from renovate/black-24.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m56s
divent / docker (push) Successful in 46s
divent / pypi (push) Has been skipped
Reviewed-on: #205
2024-04-26 14:23:52 +00:00
Renovate Bot
e8c6959ae5 chore(deps): update dependency black to v24.4.2
All checks were successful
divent / lint (push) Successful in 2m14s
divent / docker (push) Successful in 1m54s
divent / pypi (push) Has been skipped
2024-04-26 06:53:41 +00:00
4c0314e7e6 Merge pull request 'chore(deps): update dependency black to v24.4.1' (#203) from renovate/black-24.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m54s
divent / docker (push) Successful in 1m48s
divent / pypi (push) Has been skipped
Reviewed-on: #203
2024-04-25 19:05:34 +00:00
d2e6a0284c Merge pull request 'chore(deps): update dependency mypy to v1.10.0' (#204) from renovate/mypy-1.x-lockfile into master
Some checks are pending
divent / lint (push) Waiting to run
divent / docker (push) Blocked by required conditions
divent / pypi (push) Blocked by required conditions
Reviewed-on: #204
2024-04-25 19:05:26 +00:00
Renovate Bot
f8211686be chore(deps): update dependency mypy to v1.10.0
All checks were successful
divent / lint (push) Successful in 1m53s
divent / docker (push) Successful in 1m20s
divent / pypi (push) Has been skipped
2024-04-25 06:33:50 +00:00
Renovate Bot
4f24b29a0c chore(deps): update dependency black to v24.4.1
All checks were successful
divent / lint (push) Successful in 2m59s
divent / docker (push) Successful in 2m19s
divent / pypi (push) Has been skipped
2024-04-25 06:33:42 +00:00
0ca5d79487 Merge pull request 'chore(deps): update dependency black to v24.4.0' (#202) from renovate/black-24.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m52s
divent / docker (push) Successful in 2m47s
divent / pypi (push) Has been skipped
Reviewed-on: #202
2024-04-15 10:36:04 +00:00
Renovate Bot
126c0872f6 chore(deps): update dependency black to v24.4.0
All checks were successful
divent / lint (push) Successful in 1m52s
divent / docker (push) Successful in 1m24s
divent / pypi (push) Has been skipped
2024-04-13 06:35:55 +00:00
9d2d03514e Merge pull request 'chore(deps): update python docker tag to v3.12.3' (#201) from renovate/python-3.x into master
All checks were successful
divent / lint (push) Successful in 1m46s
divent / docker (push) Successful in 43s
divent / pypi (push) Has been skipped
Reviewed-on: #201
2024-04-10 11:37:25 +00:00
Renovate Bot
6bb3775571 chore(deps): update python docker tag to v3.12.3
All checks were successful
divent / lint (push) Successful in 2m18s
divent / docker (push) Successful in 2m48s
divent / pypi (push) Has been skipped
2024-04-10 06:38:42 +00:00
a3deadc28e Merge pull request 'chore(deps): update dependency quart to v0.19.5' (#200) from renovate/quart-0.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m31s
divent / docker (push) Successful in 38s
divent / pypi (push) Has been skipped
Reviewed-on: #200
2024-04-02 07:01:54 +00:00
Renovate Bot
9fc4012696 chore(deps): update dependency quart to v0.19.5
All checks were successful
divent / lint (push) Successful in 2m16s
divent / docker (push) Successful in 2m11s
divent / pypi (push) Has been skipped
2024-04-02 06:54:15 +00:00
d9ad60075a Merge pull request 'chore(deps): update dependency requests-oauthlib to v2' (#199) from renovate/requests-oauthlib-2.x into master
All checks were successful
divent / lint (push) Successful in 2m8s
divent / docker (push) Successful in 1m48s
divent / pypi (push) Has been skipped
Reviewed-on: #199
2024-03-24 19:47:45 +00:00
Renovate Bot
e3cdd89350 chore(deps): update dependency requests-oauthlib to v2
All checks were successful
divent / lint (push) Successful in 2m23s
divent / docker (push) Successful in 2m38s
divent / pypi (push) Has been skipped
2024-03-23 06:51:05 +00:00
7b518d4e99 Merge pull request 'chore(deps): update dependency uvicorn to ^0.29.0' (#198) from renovate/uvicorn-0.x into master
All checks were successful
divent / lint (push) Successful in 1m54s
divent / docker (push) Successful in 1m1s
divent / pypi (push) Has been skipped
Reviewed-on: #198
2024-03-21 09:46:54 +00:00
Renovate Bot
a71b1f7633 chore(deps): update dependency uvicorn to ^0.29.0
All checks were successful
divent / lint (push) Successful in 2m15s
divent / docker (push) Successful in 2m34s
divent / pypi (push) Has been skipped
2024-03-21 06:45:47 +00:00
6914cb8b90 Merge pull request 'chore(deps): update dependency uvicorn to v0.28.1' (#197) from renovate/uvicorn-0.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m38s
divent / docker (push) Successful in 54s
divent / pypi (push) Has been skipped
Reviewed-on: #197
2024-03-20 07:56:19 +00:00
Renovate Bot
547b108e0a chore(deps): update dependency uvicorn to v0.28.1
All checks were successful
divent / lint (push) Successful in 2m13s
divent / docker (push) Successful in 2m6s
divent / pypi (push) Has been skipped
2024-03-20 06:44:34 +00:00
a5e68a2751 Merge pull request 'chore(deps): update dependency black to v24.3.0' (#196) from renovate/black-24.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m36s
divent / docker (push) Successful in 1m22s
divent / pypi (push) Has been skipped
Reviewed-on: #196
2024-03-18 07:29:22 +00:00
Renovate Bot
1f6cff347f chore(deps): update dependency black to v24.3.0
All checks were successful
divent / lint (push) Successful in 3m3s
divent / docker (push) Successful in 2m12s
divent / pypi (push) Has been skipped
2024-03-16 06:52:53 +00:00
155bd0aada chore: 🔖 update version
All checks were successful
divent / lint (push) Successful in 2m3s
divent / docker (push) Successful in 2m32s
divent / pypi (push) Has been skipped
2024-03-11 12:44:25 +00:00
274b642c84 chore: ⬆️ update deps
Some checks failed
divent / pypi (push) Blocked by required conditions
divent / lint (push) Successful in 2m17s
divent / docker (push) Has been cancelled
2024-03-11 12:41:50 +00:00
e14ecefcf8 Merge pull request 'chore(deps): update dependency requests-oauthlib to v1.4.0' (#195) from renovate/requests-oauthlib-1.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m48s
divent / docker (push) Successful in 42s
divent / pypi (push) Has been skipped
Reviewed-on: #195
2024-03-11 10:19:12 +00:00
Renovate Bot
cea9a387c6 chore(deps): update dependency requests-oauthlib to v1.4.0
All checks were successful
divent / lint (push) Successful in 2m13s
divent / docker (push) Successful in 2m13s
divent / pypi (push) Has been skipped
2024-03-11 06:54:12 +00:00
ba8befa3b0 Merge pull request 'chore(deps): update dependency uvicorn to ^0.28.0' (#194) from renovate/uvicorn-0.x into master
All checks were successful
divent / lint (push) Successful in 2m6s
divent / docker (push) Successful in 58s
divent / pypi (push) Has been skipped
Reviewed-on: #194
2024-03-10 10:08:04 +00:00
Renovate Bot
d73a88c102 chore(deps): update dependency uvicorn to ^0.28.0
All checks were successful
divent / lint (push) Successful in 2m22s
divent / docker (push) Successful in 1m55s
divent / pypi (push) Has been skipped
2024-03-10 06:44:05 +00:00
b9b66d182b Merge pull request 'chore(deps): update dependency mypy to v1.9.0' (#193) from renovate/mypy-1.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 1m53s
divent / docker (push) Successful in 49s
divent / pypi (push) Has been skipped
Reviewed-on: #193
2024-03-09 10:37:38 +00:00
Renovate Bot
65722ba7c3 chore(deps): update dependency mypy to v1.9.0
All checks were successful
divent / lint (push) Successful in 2m6s
divent / docker (push) Successful in 1m57s
divent / pypi (push) Has been skipped
2024-03-09 06:38:22 +00:00
59926c9b5d fix: 👷 update ci to new gitea ref
All checks were successful
divent / lint (push) Successful in 1m55s
divent / docker (push) Successful in 46s
divent / pypi (push) Successful in 1m9s
2024-03-01 22:15:12 +01:00
304f80a3f5 chore: ⬆️ update deps
All checks were successful
divent / lint (push) Successful in 1m58s
divent / docker (push) Successful in 2m35s
divent / pypi (push) Has been skipped
2024-03-01 22:02:58 +01:00
20b672df71 Merge pull request 'chore(deps): update gr1n/setup-poetry action to v9' (#192) from renovate/gr1n-setup-poetry-9.x into master
All checks were successful
divent / lint (push) Successful in 2m37s
divent / docker (push) Successful in 55s
divent / pypi (push) Has been skipped
Reviewed-on: #192
2024-02-18 13:07:40 +00:00
Renovate Bot
7f9b5c32b1 chore(deps): update gr1n/setup-poetry action to v9
All checks were successful
divent / lint (push) Successful in 2m18s
divent / docker (push) Successful in 2m47s
divent / pypi (push) Has been skipped
2024-02-18 06:46:02 +00:00
e9b57594cd Merge pull request 'chore(deps): update dependency black to v24.2.0' (#191) from renovate/black-24.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m21s
divent / docker (push) Successful in 1m1s
divent / pypi (push) Has been skipped
Reviewed-on: #191
2024-02-13 13:04:12 +00:00
Renovate Bot
9859863b80 chore(deps): update dependency black to v24.2.0
All checks were successful
divent / lint (push) Successful in 2m43s
divent / docker (push) Successful in 2m32s
divent / pypi (push) Has been skipped
2024-02-13 06:46:16 +00:00
723595c94a Merge pull request 'chore(deps): update dependency uvicorn to v0.27.1' (#190) from renovate/uvicorn-0.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m20s
divent / docker (push) Successful in 57s
divent / pypi (push) Has been skipped
Reviewed-on: #190
2024-02-11 09:38:02 +00:00
Renovate Bot
0c29a9f040 chore(deps): update dependency uvicorn to v0.27.1
All checks were successful
divent / lint (push) Successful in 3m2s
divent / docker (push) Successful in 2m10s
divent / pypi (push) Has been skipped
2024-02-11 06:43:58 +00:00
1a95628eb5 Merge pull request 'chore(deps): update python docker tag to v3.12.2' (#189) from renovate/python-3.x into master
All checks were successful
divent / lint (push) Successful in 2m14s
divent / docker (push) Successful in 48s
divent / pypi (push) Has been skipped
Reviewed-on: #189
2024-02-08 09:35:20 +00:00
Renovate Bot
1a74e4428a chore(deps): update python docker tag to v3.12.2
All checks were successful
divent / lint (push) Successful in 2m31s
divent / docker (push) Successful in 2m31s
divent / pypi (push) Has been skipped
2024-02-08 06:40:42 +00:00
b136784301 Merge pull request 'chore(deps): update dependency black to v24.1.1' (#188) from renovate/black-24.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m29s
divent / docker (push) Successful in 58s
divent / pypi (push) Has been skipped
Reviewed-on: #188
2024-01-28 08:25:04 +00:00
Renovate Bot
ec88c636d8 chore(deps): update dependency black to v24.1.1
All checks were successful
divent / lint (push) Successful in 2m37s
divent / docker (push) Successful in 2m51s
divent / pypi (push) Has been skipped
2024-01-28 06:56:53 +00:00
cb5650c870 Merge pull request 'chore: update to python 3.12' (#187) from py3.13 into master
All checks were successful
divent / lint (push) Successful in 3m22s
divent / docker (push) Successful in 1m28s
divent / pypi (push) Has been skipped
Reviewed-on: #187
2024-01-26 11:31:30 +00:00
596a261e00 chore: update to python 3.12
All checks were successful
divent / lint (push) Successful in 3m5s
divent / docker (push) Successful in 3m22s
divent / pypi (push) Has been skipped
2024-01-26 11:19:56 +00:00
2db7b6bbf8 chore: update version
All checks were successful
divent / lint (push) Successful in 2m9s
divent / docker (push) Successful in 2m11s
divent / pypi (push) Has been skipped
2024-01-24 12:40:03 +01:00
e38bfc7472 chore: update docker tag
Some checks are pending
divent / lint (push) Waiting to run
divent / docker (push) Blocked by required conditions
divent / pypi (push) Blocked by required conditions
2024-01-24 12:37:32 +01:00
bedc1ed2e4 fix: missing __init__ to please mypy
All checks were successful
divent / lint (push) Successful in 2m6s
divent / docker (push) Successful in 39s
divent / pypi (push) Successful in 1m32s
2024-01-24 12:31:22 +01:00
831665232c feat: rework __main__ (close #170)
Some checks failed
divent / docker (push) Has been skipped
divent / pypi (push) Has been skipped
divent / lint (push) Failing after 1m42s
2024-01-24 12:25:33 +01:00
8ff7a6bd70 chore: update deps
All checks were successful
divent / lint (push) Successful in 2m44s
divent / docker (push) Successful in 5m3s
divent / pypi (push) Has been skipped
2024-01-24 10:10:39 +00:00
226f2e1ef0 Merge pull request 'Update dependency python-dotenv to v1.0.1' (#185) from renovate/python-dotenv-1.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 4m11s
divent / docker (push) Successful in 1m43s
divent / pypi (push) Has been skipped
Reviewed-on: #185
2024-01-24 09:17:35 +00:00
Renovate Bot
cf7ef5a05b Update dependency python-dotenv to v1.0.1
All checks were successful
divent / lint (push) Successful in 3m41s
divent / docker (push) Successful in 3m48s
divent / pypi (push) Has been skipped
2024-01-24 06:48:00 +00:00
ad9a138a08 Merge pull request 'Update dependency uvicorn to ^0.27.0' (#184) from renovate/uvicorn-0.x into master
All checks were successful
divent / lint (push) Successful in 2m39s
divent / docker (push) Successful in 1m15s
divent / pypi (push) Has been skipped
Reviewed-on: #184
2024-01-23 10:35:05 +00:00
Renovate Bot
b18864ef83 Update dependency uvicorn to ^0.27.0
All checks were successful
divent / lint (push) Successful in 4m22s
divent / docker (push) Successful in 4m50s
divent / pypi (push) Has been skipped
2024-01-23 06:31:19 +00:00
73ab2891a6 Merge pull request 'Update dependency uvicorn to ^0.26.0' (#183) from renovate/uvicorn-0.x into master
All checks were successful
divent / lint (push) Successful in 3m20s
divent / docker (push) Successful in 4m17s
divent / pypi (push) Has been skipped
Reviewed-on: #183
2024-01-17 17:31:33 +00:00
Renovate Bot
5e92b511d2 Update dependency uvicorn to ^0.26.0
All checks were successful
divent / lint (push) Successful in 4m5s
divent / docker (push) Successful in 4m47s
divent / pypi (push) Has been skipped
2024-01-17 06:40:37 +00:00
22fe3f8c44 Merge pull request 'Update dependency flake8 to v7' (#182) from renovate/flake8-7.x into master
All checks were successful
divent / lint (push) Successful in 3m30s
divent / docker (push) Successful in 2m8s
divent / pypi (push) Has been skipped
Reviewed-on: #182
2024-01-05 08:01:34 +00:00
Renovate Bot
7b45a22fe2 Update dependency flake8 to v7
All checks were successful
divent / lint (push) Successful in 2m33s
divent / docker (push) Successful in 4m50s
divent / pypi (push) Has been skipped
2024-01-05 06:42:29 +00:00
753240d29e Merge pull request 'Update dependency black to v23.12.1' (#181) from renovate/black-23.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m14s
divent / docker (push) Successful in 50s
divent / pypi (push) Has been skipped
Reviewed-on: #181
2023-12-23 14:12:34 +00:00
Renovate Bot
1342021398 Update dependency black to v23.12.1
All checks were successful
divent / lint (push) Successful in 2m7s
divent / docker (push) Successful in 3m22s
divent / pypi (push) Has been skipped
2023-12-23 06:33:07 +00:00
e69f51b722 Merge pull request 'Update dependency mypy to v1.8.0' (#180) from renovate/mypy-1.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 3m18s
divent / docker (push) Successful in 1m28s
divent / pypi (push) Has been skipped
Reviewed-on: #180
2023-12-22 09:56:51 +00:00
Renovate Bot
50fd741f9c Update dependency mypy to v1.8.0
All checks were successful
divent / lint (push) Successful in 2m23s
divent / docker (push) Successful in 3m44s
divent / pypi (push) Has been skipped
2023-12-22 06:52:32 +00:00
2aad442d51 Merge pull request 'Update dependency uvicorn to ^0.25.0' (#179) from renovate/uvicorn-0.x into master
All checks were successful
divent / lint (push) Successful in 2m9s
divent / docker (push) Successful in 2m29s
divent / pypi (push) Has been skipped
Reviewed-on: #179
2023-12-21 08:38:06 +00:00
06797a344c Merge pull request 'Update dependency djlint to v1.34.1' (#178) from renovate/djlint-1.x-lockfile into master
Some checks failed
divent / docker (push) Blocked by required conditions
divent / pypi (push) Blocked by required conditions
divent / lint (push) Has been cancelled
Reviewed-on: #178
2023-12-21 08:37:49 +00:00
Renovate Bot
a84228a11c Update dependency uvicorn to ^0.25.0
All checks were successful
divent / lint (push) Successful in 2m2s
divent / docker (push) Successful in 1m44s
divent / pypi (push) Has been skipped
2023-12-21 06:47:29 +00:00
Renovate Bot
b47b3de93d Update dependency djlint to v1.34.1
All checks were successful
divent / lint (push) Successful in 3m1s
divent / docker (push) Successful in 3m13s
divent / pypi (push) Has been skipped
2023-12-21 06:47:16 +00:00
ff7576499d Merge pull request 'Update dependency uvicorn to v0.24.0' (#177) from renovate/uvicorn-0.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m55s
divent / docker (push) Successful in 1m16s
divent / pypi (push) Has been skipped
Reviewed-on: #177
2023-12-17 09:49:58 +00:00
Renovate Bot
d61b0648fc Update dependency uvicorn to v0.24.0
All checks were successful
divent / lint (push) Successful in 3m1s
divent / docker (push) Successful in 3m2s
divent / pypi (push) Has been skipped
2023-12-17 06:46:06 +00:00
95c9971d58 Merge pull request 'Update dependency black to v23.12.0' (#176) from renovate/black-23.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 3m33s
divent / docker (push) Successful in 1m32s
divent / pypi (push) Has been skipped
Reviewed-on: #176
2023-12-16 15:36:58 +00:00
Renovate Bot
3f1684cf53 Update dependency black to v23.12.0
All checks were successful
divent / lint (push) Successful in 2m57s
divent / docker (push) Successful in 2m46s
divent / pypi (push) Has been skipped
2023-12-12 06:42:42 +00:00
9fa3abc5b9 Merge pull request 'Update dependency mypy to v1.7.1' (#175) from renovate/mypy-1.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 3m18s
divent / docker (push) Successful in 1m30s
divent / pypi (push) Has been skipped
Reviewed-on: #175
2023-11-27 19:30:13 +00:00
Renovate Bot
ef6fe70294 Update dependency mypy to v1.7.1
All checks were successful
divent / lint (push) Successful in 2m32s
divent / docker (push) Successful in 2m22s
divent / pypi (push) Has been skipped
2023-11-24 06:37:50 +00:00
0071466b3e Merge pull request 'Update dependency quart to v0.19.4' (#174) from renovate/quart-0.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m32s
divent / docker (push) Successful in 2m15s
divent / pypi (push) Has been skipped
Reviewed-on: #174
2023-11-21 12:55:07 +00:00
Renovate Bot
42154aad48 Update dependency quart to v0.19.4
All checks were successful
divent / lint (push) Successful in 3m51s
divent / docker (push) Successful in 2m43s
divent / pypi (push) Has been skipped
2023-11-20 06:53:26 +00:00
4d1cd317b9 Merge pull request 'Update dependency mypy to v1.7.0' (#173) from renovate/mypy-1.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m25s
divent / docker (push) Successful in 1m27s
divent / pypi (push) Has been skipped
Reviewed-on: #173
2023-11-11 09:09:26 +00:00
Renovate Bot
d8e2fa7504 Update dependency mypy to v1.7.0
All checks were successful
divent / lint (push) Successful in 2m20s
divent / docker (push) Successful in 2m32s
divent / pypi (push) Has been skipped
2023-11-11 06:45:23 +00:00
6072a3d5e6 Merge pull request 'Update dependency black to v23.11.0' (#172) from renovate/black-23.x-lockfile into master
All checks were successful
divent / lint (push) Successful in 2m16s
divent / docker (push) Successful in 1m15s
divent / pypi (push) Has been skipped
Reviewed-on: #172
2023-11-08 07:27:49 +00:00
Renovate Bot
12cd4bc38b Update dependency black to v23.11.0
All checks were successful
divent / lint (push) Successful in 2m7s
divent / docker (push) Successful in 2m21s
divent / pypi (push) Has been skipped
2023-11-08 06:37:05 +00:00
9f1e80ea0c Update version
All checks were successful
divent / lint (push) Successful in 1m58s
divent / docker (push) Successful in 2m4s
divent / pypi (push) Has been skipped
2023-11-07 11:09:58 +01:00
21ff9c0234 Update version
All checks were successful
divent / lint (push) Successful in 2m5s
divent / docker (push) Successful in 41s
divent / pypi (push) Successful in 1m25s
2023-11-07 11:08:24 +01:00
21737c33e4 Fix loop handling (closes #169)
All checks were successful
divent / lint (push) Successful in 1m57s
divent / docker (push) Successful in 2m4s
divent / pypi (push) Has been skipped
2023-11-07 11:07:42 +01:00
842896642e Add cache to fetch_users (closes #171)
All checks were successful
divent / lint (push) Successful in 2m30s
divent / docker (push) Successful in 2m19s
divent / pypi (push) Has been skipped
2023-11-07 10:52:38 +01:00
96ac519fde Fix wrong test on filtering user
All checks were successful
divent / lint (push) Successful in 2m6s
divent / docker (push) Successful in 2m10s
divent / pypi (push) Has been skipped
2023-11-07 02:37:08 +01:00
f7779ace60 Fix crash in case of vanity code and not found
All checks were successful
divent / lint (push) Successful in 2m50s
divent / docker (push) Successful in 2m47s
divent / pypi (push) Has been skipped
2023-11-07 02:12:55 +01:00
f49f69cc79 Update version
All checks were successful
divent / lint (push) Successful in 1m53s
divent / docker (push) Successful in 2m6s
divent / pypi (push) Has been skipped
2023-11-07 01:42:26 +01:00
7 changed files with 758 additions and 674 deletions

View File

@ -4,12 +4,12 @@ on: [push]
jobs:
lint:
runs-on: ubuntu-latest
container: python:3.11
container: python:3.12.3
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v4
- uses: Gr1N/setup-poetry@v8
- uses: Gr1N/setup-poetry@v9
- run: poetry install
- run: poetry run flake8 .
- run: poetry run mypy .
@ -37,20 +37,20 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }}
push: ${{ gitea.ref_name == gitea.event.repository.default_branch || gitea.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pypi:
runs-on: ubuntu-latest
container: python:3.11
container: python:3.12.3
needs: [lint]
if: startsWith(gitea.ref, 'refs/tags')
if: gitea.ref_type == 'tag'
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v4
- uses: Gr1N/setup-poetry@v8
- uses: Gr1N/setup-poetry@v9
- run: poetry publish --build

View File

@ -1,10 +1,10 @@
FROM python:3.11.6 as build
FROM python:3.12.3 as build
WORKDIR /app
COPY . .
RUN pip install poetry && poetry build
FROM python:3.11.5
FROM python:3.12.3
COPY --from=build /app/dist /tmp/dist
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist

0
divent/__init__.py Normal file
View File

3
divent/__main__.py Normal file
View File

@ -0,0 +1,3 @@
from divent.bot import run
run()

View File

@ -3,9 +3,9 @@ import logging
from datetime import datetime, timedelta
from functools import wraps
from os import getenv, path
from typing import Dict, Optional
from typing import Dict, Optional, Union
from disnake import Asset, Client, Guild
from disnake import Asset, Client, Guild, Intents, Member, User
from disnake.guild_scheduled_event import GuildScheduledEvent
from dotenv import load_dotenv
from ics import Calendar, ContentLine, Event
@ -36,13 +36,47 @@ API_BASE_URL = getenv("API_BASE_URL", "https://discordapp.com/api")
AUTHORIZATION_BASE_URL = f"{API_BASE_URL}/oauth2/authorize"
TOKEN_URL = f"{API_BASE_URL}/oauth2/token"
CATALOG_CACHE = {}
EVENTS_CACHE = {}
class Discord(Client):
async def on_ready(self):
print(f"Logged on as {self.user}!", flush=True)
for guild in self.guilds:
for scheduled_event in guild.scheduled_events:
EVENTS_CACHE[scheduled_event.id] = [
member.id
for member in await scheduled_event.fetch_users().flatten()
]
print("Events synchronised!", flush=True)
async def on_guild_scheduled_event_subscribe(
self, event: GuildScheduledEvent, user: Union[Member, User]
):
EVENTS_CACHE[event.id].append(user.id)
async def on_guild_scheduled_event_unsubscribe(
self, event: GuildScheduledEvent, user: Union[Member, User]
):
EVENTS_CACHE[event.id].remove(user.id)
async def on_guild_scheduled_event_create(self, event: GuildScheduledEvent):
EVENTS_CACHE[event.id] = [
member.id for member in await event.fetch_users().flatten()
]
async def on_guild_scheduled_event_delete(self, event: GuildScheduledEvent):
EVENTS_CACHE.pop(event.id)
intents = Intents.default()
intents.guild_scheduled_events = True
intents.members = True
client = Discord(intents=intents)
client = Discord()
app = Quart(__name__)
app.config["SECRET_KEY"] = OAUTH2_CLIENT_SECRET
app.config["EXPLAIN_TEMPLATE_LOADING"] = QUART_DEBUG
@ -57,9 +91,6 @@ def get_guild_by_id(guild_id: str) -> Optional[Guild]:
return None
CATALOG_CACHE = {}
@app.errorhandler(500)
async def errorhandler(error: Exception):
print(f"\33[31m{error}\33[m", flush=True)
@ -221,7 +252,10 @@ async def subscribe(entity_id: str):
entity_id=guild.vanity_url_code or guild.id,
)
try:
user = await client.get_or_fetch_user(int(entity_id))
except ValueError:
return redirect(url_for(".login"))
if user and str(user.id) == entity_id:
return await render_template(
@ -281,7 +315,10 @@ async def ical(entity_id: str):
return calendar.serialize()
try:
user = await client.get_or_fetch_user(int(entity_id))
except ValueError:
return redirect(url_for(".login"))
if user:
calendar = Calendar()
@ -295,12 +332,8 @@ async def ical(entity_id: str):
)
for guild in client.guilds:
if await guild.get_or_fetch_member(int(entity_id)):
for scheduled_event in guild.scheduled_events:
if user.id in [
member.id
for member in await scheduled_event.fetch_users().flatten()
]:
if user.id in EVENTS_CACHE[scheduled_event.id]:
event = make_event(scheduled_event)
calendar.events.append(event)
@ -309,7 +342,6 @@ async def ical(entity_id: str):
return redirect(url_for(".login"))
def __main__():
quart_task = client.loop.create_task(app.run_task("0.0.0.0"))
quart_task.add_done_callback(lambda f: client.loop.stop())
client.run(DISCORD_TOKEN)
def run():
client.loop.create_task(client.start(DISCORD_TOKEN))
app.run("0.0.0.0", loop=client.loop)

1315
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "divent"
version = "4.0.0"
version = "4.1.4"
description = "The discord scheduled event calendar generator"
authors = ["Xéfir Destiny <xefir@crystalyx.net>"]
license = "WTFPL"
@ -9,26 +9,26 @@ homepage = "https://divent.crystalyx.net/"
repository = "https://git.crystalyx.net/Xefir/Divent"
[tool.poetry.scripts]
divent = 'divent.bot:__main__'
divent = 'divent.bot:run'
[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
disnake = "^2.9.1"
python = ">=3.8.1,<4.0.0"
disnake = "^2.9.2"
ics = "0.8.0.dev0"
python-dotenv = "^1.0.0"
quart = "^0.19.3"
requests-oauthlib = "^1.3.1"
uvicorn = "^0.24.0"
python-dotenv = "^1.0.1"
quart = "^0.19.6"
requests-oauthlib = "^2.0.0"
uvicorn = "^0.30.0"
[tool.poetry.dev-dependencies]
black = "^23.10.1"
djlint = "^1.34.0"
flake8 = "^6.1.0"
black = "^24.4.2"
djlint = "^1.34.1"
flake8 = "^7.0.0"
flake8-alphabetize = "^0.0.21"
flake8-black = "^0.3.6"
flake8-pyproject = "^1.2.3"
mypy = "^1.6.1"
types-oauthlib = "^3.2.0.10"
mypy = "^1.10.0"
types-oauthlib = "^3.2.0"
[tool.flake8]
max-line-length = 88