Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit c9f2bde

Browse files
authored
fix: upgrade dependencies and fix tests (#126)
* fix: upgrade dependencies * fix: update docker-compose of infra * chore: upgrade pre-commit config * chore: upgrade github action for ci
1 parent 8a19b39 commit c9f2bde

File tree

5 files changed

+466
-728
lines changed

5 files changed

+466
-728
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest]
11-
python-version: [3.7, 3.8, 3.9, '3.10']
11+
python-version: [3.7, 3.8, 3.9, "3.10"]
1212
runs-on: ${{ matrix.os }}
1313
steps:
14-
- name: Clone Repository
15-
uses: actions/checkout@v2
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: ${{ matrix.python-version }}
20-
- name: Set up Poetry
21-
uses: abatilo/[email protected].4
22-
with:
23-
poetry-version: 1.1.12
24-
- name: Run Tests
25-
run: make run_tests
26-
- name: Upload Coverage
27-
uses: codecov/codecov-action@v1
14+
- name: Clone Repository
15+
uses: actions/checkout@v3
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Set up Poetry
21+
uses: abatilo/[email protected].5
22+
with:
23+
poetry-version: 1.1.13
24+
- name: Run Tests
25+
run: make run_tests
26+
- name: Upload Coverage
27+
uses: codecov/codecov-action@v3
2828

2929
publish:
3030
needs: test
@@ -33,7 +33,7 @@ jobs:
3333
name: "Bump version, create changelog and publish"
3434
steps:
3535
- name: Clone Repository
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v3
3737
with:
3838
ref: ${{ github.ref }}
3939
fetch-depth: 0

.pre-commit-config.yaml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.1.0
4-
hooks:
5-
- id: trailing-whitespace
6-
- id: check-added-large-files
7-
- id: end-of-file-fixer
8-
- id: mixed-line-ending
9-
args: ["--fix=lf"]
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: check-added-large-files
7+
- id: end-of-file-fixer
8+
- id: mixed-line-ending
9+
args: ["--fix=lf"]
1010

11-
- repo: https://github.com/pycqa/isort
12-
rev: 5.10.1
13-
hooks:
14-
- id: isort
15-
args:
16-
[
17-
"--profile",
18-
"black",
19-
"--multi-line=3",
20-
"--trailing-comma",
21-
"--force-grid-wrap=0",
22-
"--use-parentheses",
23-
"--line-width=88",
24-
]
11+
- repo: https://github.com/pycqa/isort
12+
rev: 5.10.1
13+
hooks:
14+
- id: isort
15+
args:
16+
[
17+
"--profile",
18+
"black",
19+
"--multi-line=3",
20+
"--trailing-comma",
21+
"--force-grid-wrap=0",
22+
"--use-parentheses",
23+
"--line-width=88",
24+
]
2525

26-
- repo: https://github.com/myint/autoflake.git
27-
rev: v1.4
28-
hooks:
29-
- id: autoflake
30-
args:
31-
[
32-
"--in-place",
33-
"--remove-all-unused-imports",
34-
"--ignore-init-module-imports",
35-
]
26+
- repo: https://github.com/myint/autoflake.git
27+
rev: v1.4
28+
hooks:
29+
- id: autoflake
30+
args:
31+
[
32+
"--in-place",
33+
"--remove-all-unused-imports",
34+
"--ignore-init-module-imports",
35+
]
3636

37-
- repo: https://github.com/ambv/black
38-
rev: 21.12b0
39-
hooks:
40-
- id: black
37+
- repo: https://github.com/ambv/black
38+
rev: 22.6.0
39+
hooks:
40+
- id: black
4141

42-
- repo: https://github.com/asottile/pyupgrade
43-
rev: v2.31.0
44-
hooks:
45-
- id: pyupgrade
46-
args: ["--py37-plus", "--keep-runtime-typing"]
42+
- repo: https://github.com/asottile/pyupgrade
43+
rev: v2.34.0
44+
hooks:
45+
- id: pyupgrade
46+
args: ["--py37-plus", "--keep-runtime-typing"]
4747

48-
- repo: https://github.com/commitizen-tools/commitizen
49-
rev: v2.20.3
50-
hooks:
51-
- id: commitizen
52-
stages: [commit-msg]
48+
- repo: https://github.com/commitizen-tools/commitizen
49+
rev: v2.28.0
50+
hooks:
51+
- id: commitizen
52+
stages: [commit-msg]

infra/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ services:
3838
GOTRUE_SMS_TWILIO_AUTH_TOKEN: "${GOTRUE_SMS_TWILIO_AUTH_TOKEN}"
3939
GOTRUE_SMS_TWILIO_MESSAGE_SERVICE_SID: "${GOTRUE_SMS_TWILIO_MESSAGE_SERVICE_SID}"
4040
GOTRUE_SMS_AUTOCONFIRM: 'false'
41+
GOTRUE_COOKIE_KEY: "sb"
4142
depends_on:
4243
- db
4344
restart: on-failure
@@ -67,6 +68,7 @@ services:
6768
GOTRUE_SMTP_USER: GOTRUE_SMTP_USER
6869
GOTRUE_SMTP_PASS: GOTRUE_SMTP_PASS
6970
GOTRUE_SMTP_ADMIN_EMAIL: [email protected]
71+
GOTRUE_COOKIE_KEY: "sb"
7072
depends_on:
7173
- db
7274
restart: on-failure
@@ -96,6 +98,7 @@ services:
9698
GOTRUE_SMTP_USER: GOTRUE_SMTP_USER
9799
GOTRUE_SMTP_PASS: GOTRUE_SMTP_PASS
98100
GOTRUE_SMTP_ADMIN_EMAIL: [email protected]
101+
GOTRUE_COOKIE_KEY: "sb"
99102
depends_on:
100103
- db
101104
restart: on-failure
@@ -106,10 +109,9 @@ services:
106109
- '9000:9000' # web interface
107110
- '1100:1100' # POP3
108111
db:
109-
image: supabase/postgres:latest
112+
image: supabase/postgres:14.1.0
110113
ports:
111114
- '5432:5432'
112-
command: postgres -c config_file=/etc/postgresql/postgresql.conf
113115
volumes:
114116
- ./db:/docker-entrypoint-initdb.d/
115117
environment:

0 commit comments

Comments
 (0)