Skip to content

Commit 133774d

Browse files
Merge pull request #39 from sqlitecloud/38-support-to-tokens
feat(tokens): add support
2 parents 433b17e + 2f45e47 commit 133774d

20 files changed

+164
-734
lines changed

.devcontainer/py3.11/devcontainer.json renamed to .devcontainer/py3.13/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/python
33
{
4-
"name": "Python 3.11",
4+
"name": "Python 3.13",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/python:3.11",
6+
"image": "mcr.microsoft.com/devcontainers/python:3.13",
77
"features": {
88
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
99
},

.devcontainer/py3.6-dev/devcontainer.json renamed to .devcontainer/py3.6-testing/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/python
33
{
4-
"name": "Python 3.6 For development",
4+
"name": "Python 3.6 For Legacy Testing",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"build": {
77
"dockerfile": "Dockerfile"

.devcontainer/py3.7/devcontainer.json renamed to .devcontainer/py3.9-dev/devcontainer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/python
33
{
4-
"name": "Python 3.7",
4+
"name": "Python 3.9 for development",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/python:3.7",
6+
"image": "mcr.microsoft.com/devcontainers/python:3.9",
77
"features": {
88
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
99
},
@@ -28,7 +28,8 @@
2828
"ms-python.debugpy",
2929
"ms-python.black-formatter",
3030
"ms-python.isort",
31-
"ms-toolsai.jupyter"
31+
"ms-toolsai.jupyter",
32+
"eamodio.gitlens"
3233
]
3334
}
3435
}

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ SQLITE_CONNECTION_STRING=sqlitecloud://myhost.sqlite.cloud
22
SQLITE_USER=admin
33
SQLITE_PASSWORD=
44
SQLITE_API_KEY=
5+
SQLITE_ACCESS_TOKEN=
56
SQLITE_HOST=myhost.sqlite.cloud
67
SQLITE_DB=chinook.sqlite
78
SQLITE_PORT=8860

.github/workflows/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
# last supported for sqlitecloud, last security maintained, last release
17-
python-version: ["3.9", "3.10", "3.12"]
17+
python-version: ["3.9", "3.10", "3.13"]
1818

1919
steps:
2020
- uses: actions/checkout@v4
@@ -36,6 +36,7 @@ jobs:
3636
SQLITE_USER: ${{ secrets.SQLITE_USER }}
3737
SQLITE_PASSWORD: ${{ secrets.SQLITE_PASSWORD }}
3838
SQLITE_API_KEY: ${{ secrets.SQLITE_API_KEY }}
39+
SQLITE_ACCESS_TOKEN: ${{ secrets.SQLITE_ACCESS_TOKEN }}
3940
SQLITE_HOST: ${{ vars.SQLITE_HOST }}
4041
SQLITE_DB: ${{ vars.SQLITE_DB }}
4142
SQLITE_PORT: ${{ vars.SQLITE_PORT }}

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v3.2.0
6+
rev: v5.0.0
77
hooks:
88
- id: trailing-whitespace
99
exclude: '\.md$'
@@ -12,21 +12,21 @@ repos:
1212
- id: check-merge-conflict
1313
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
1414
- repo: https://github.com/pycqa/isort
15-
rev: 5.10.1
15+
rev: 6.0.1
1616
hooks:
1717
- id: isort
1818
name: isort
1919
- repo: https://github.com/psf/black-pre-commit-mirror
20-
rev: 22.8.0
20+
rev: 25.1.0
2121
hooks:
2222
- id: black
2323
# It is recommended to specify the latest version of Python
2424
# supported by your project here, or alternatively use
2525
# pre-commit's default_language_version, see
2626
# https://pre-commit.com/#top_level-default_language_version
27-
language_version: python3.6
27+
language_version: python3.9
2828
- repo: https://github.com/PyCQA/autoflake
29-
rev: v1.4
29+
rev: v2.3.1
3030
hooks:
3131
- id: autoflake
3232
name: autoflake
@@ -37,11 +37,10 @@ repos:
3737
- "--remove-unused-variables"
3838
- "--remove-all-unused-imports"
3939
- repo: https://github.com/pycqa/flake8
40-
rev: 5.0.4
40+
rev: 7.2.0
4141
hooks:
4242
- id: flake8
4343
name: flake8
44-
# stages: [push]
4544
- repo: https://github.com/PyCQA/bandit
4645
rev: 1.7.1
4746
hooks:

0 commit comments

Comments
 (0)