Skip to content

Commit 0fd2796

Browse files
authored
Update: v0.9.0
This took quite some time to complete! Kumiko is officially stable and now uses asyncpg as the core SQL driver. Along with that, the long-awaited EventsLog and Prefix modules have been implemented and are now working. Kumiko is nearly done with v0 development, and all there is left is to add a couple more features (tags and the economy system) and finally, this project will be fully deployed to production. For more info, please consult the changelog. ~ Noelle ❤️
2 parents 30b2e82 + 2990209 commit 0fd2796

File tree

131 files changed

+5841
-2665
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+5841
-2665
lines changed

.env-dev-example

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@v3
2727
- name: Set up Python 3.11
2828
id: setup-python
29-
uses: actions/setup-python@v4.5.0
29+
uses: actions/setup-python@v4.6.1
3030
with:
3131
python-version: '3.11'
3232
- name: Set up Poetry

.github/workflows/docker-build.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ jobs:
2424
images: |
2525
ghcr.io/no767/kumiko
2626
tags: |
27-
type=semver,pattern={{raw}},suffix=-bullseye
28-
type=semver,pattern={{version}},suffix=-bullseye
29-
type=semver,pattern={{major}}.{{minor}},suffix=-bullseye
30-
type=semver,pattern={{major}},suffix=-bullseye
27+
type=semver,pattern={{raw}},suffix=-bookworm
28+
type=semver,pattern={{version}},suffix=-bookworm
29+
type=semver,pattern={{major}}.{{minor}},suffix=-bookworm
30+
type=semver,pattern={{major}},suffix=-bookworm
3131
type=semver,pattern={{raw}}
3232
type=semver,pattern={{version}}
3333
type=semver,pattern={{major}}.{{minor}}
3434
type=semver,pattern={{major}}
3535
type=edge,branch=dev
36-
type=edge,branch=dev,suffix=-bullseye
36+
type=edge,branch=dev,suffix=-bookworm
3737
3838
- name: Setup Docker Buildx
3939
id: buildx
@@ -56,7 +56,7 @@ jobs:
5656
restore-keys: |
5757
${{ runner.os }}-buildx-debian-ghcr-
5858
- name: Build and push
59-
uses: docker/build-push-action@v4.0.0
59+
uses: docker/build-push-action@v4.1.1
6060
with:
6161
context: .
6262
file: ./Docker/Dockerfile
@@ -84,16 +84,16 @@ jobs:
8484
images: |
8585
no767/kumiko
8686
tags: |
87-
type=semver,pattern={{raw}},suffix=-bullseye
88-
type=semver,pattern={{version}},suffix=-bullseye
89-
type=semver,pattern={{major}}.{{minor}},suffix=-bullseye
90-
type=semver,pattern={{major}},suffix=-bullseye
87+
type=semver,pattern={{raw}},suffix=-bookworm
88+
type=semver,pattern={{version}},suffix=-bookworm
89+
type=semver,pattern={{major}}.{{minor}},suffix=-bookworm
90+
type=semver,pattern={{major}},suffix=-bookworm
9191
type=semver,pattern={{raw}}
9292
type=semver,pattern={{version}}
9393
type=semver,pattern={{major}}.{{minor}}
9494
type=semver,pattern={{major}}
9595
type=edge,branch=dev
96-
type=edge,branch=dev,suffix=-bullseye
96+
type=edge,branch=dev,suffix=-bookworm
9797
9898
- name: Setup Docker Buildx
9999
id: buildx
@@ -116,7 +116,7 @@ jobs:
116116
${{ runner.os }}-buildx-debian-hub-
117117
118118
- name: Build and push
119-
uses: docker/build-push-action@v4.0.0
119+
uses: docker/build-push-action@v4.1.1
120120
with:
121121
context: .
122122
file: ./Docker/Dockerfile

.github/workflows/lint.yml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,42 @@ on:
88
branches:
99
- dev
1010

11-
env:
12-
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
11+
# env:
12+
# DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
1313

1414
jobs:
1515
Analyze:
1616
runs-on: ubuntu-latest
1717

18-
services:
19-
postgres:
20-
image: postgres:15
21-
env:
22-
POSTGRES_USER: postgres
23-
POSTGRES_PASSWORD: postgres
24-
POSTGRES_DB: postgres
25-
ports:
26-
- 5432:5432
27-
options: >-
28-
--health-cmd pg_isready
29-
--health-interval 10s
30-
--health-timeout 5s
31-
--health-retries 5
18+
# services:
19+
# postgres:
20+
# image: postgres:15
21+
# env:
22+
# POSTGRES_USER: postgres
23+
# POSTGRES_PASSWORD: postgres
24+
# POSTGRES_DB: postgres
25+
# ports:
26+
# - 5432:5432
27+
# options: >-
28+
# --health-cmd pg_isready
29+
# --health-interval 10s
30+
# --health-timeout 5s
31+
# --health-retries 5
32+
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
version: [3.8, 3.9, '3.10', '3.11']
3237

3338
steps:
3439
- name: Checkout Repository
3540
uses: actions/checkout@v3
3641

37-
- name: Set up Python 3.11
42+
- name: Set up Python ${{ matrix.version }}
3843
id: setup-python
39-
uses: actions/setup-python@v4.5.0
44+
uses: actions/setup-python@v4.6.1
4045
with:
41-
python-version: '3.11'
46+
python-version: ${{ matrix.version }}
4247

4348
- name: Set up Poetry
4449
uses: Gr1N/setup-poetry@v8
@@ -48,17 +53,17 @@ jobs:
4853
uses: actions/cache@v3.3.1
4954
with:
5055
path: ~/.cache/pypoetry/virtualenvs
51-
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
56+
key: ${{ runner.os }}-poetry-lint-${{ matrix.version }}-${{ hashFiles('**/poetry.lock') }}
5257

5358
- name: Install Poetry Dependencies
5459
if: steps.cache-poetry.outputs.cache-hit != 'true'
5560
run: |
5661
poetry install --with dev
5762
58-
- name: Generate Prisma Client
59-
run: |
60-
poetry run prisma db push
61-
6263
- name: Run Pyright
6364
run: |
6465
poetry run pyright Bot
66+
67+
- name: Run Ruff
68+
run: |
69+
poetry run ruff Bot

.github/workflows/snyk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
uses: actions/checkout@v3
1515
- name: Set up Python 3.11
1616
id: setup-python
17-
uses: actions/setup-python@v4.5.0
17+
uses: actions/setup-python@v4.6.1
1818
with:
1919
python-version: '3.11'
2020
- name: Set up Node.js 18
21-
uses: actions/setup-node@v3.6.0
21+
uses: actions/setup-node@v3.7.0
2222
with:
23-
node-version: '18'
23+
node-version: '20'
2424
- name: Install Snyk CLI
2525
run: |
2626
npm install --location=global snyk@latest

.github/workflows/tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ on:
1010
- dev
1111

1212
env:
13-
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
14-
REDIS_HOST: localhost
15-
REDIS_PORT: 6379
16-
REDIS_PASSWORD: kumiko
13+
POSTGRES_URI: postgresql://postgres:postgres@localhost:5432/postgres
14+
REDIS_URI: redis://localhost:6379/0
1715

1816

1917
jobs:
@@ -58,7 +56,7 @@ jobs:
5856
5957
- name: Set up Python
6058
id: setup-python
61-
uses: actions/setup-python@v4.5.0
59+
uses: actions/setup-python@v4.6.1
6260
with:
6361
python-version: ${{ matrix.version }}
6462

0 commit comments

Comments
 (0)