Skip to content

Commit 6ee7e95

Browse files
authored
feat: add gitpod support
feat: add gitpod support
2 parents 5d9cdcd + eec5f3b commit 6ee7e95

14 files changed

Lines changed: 72 additions & 12 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/python:3.12
2+
3+
RUN pip install --upgrade pip \
4+
&& pip install flit==3.8.0 virtualenv \
5+
&& apt-get update && apt-get install -y make

.devcontainer/devcontainer.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Python Project Template (Python 3.12)",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"postCreateCommand": "make create-venv && make install-flit && make install-dev && make enable-pre-commit-hooks",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-python.python",
11+
"ms-python.vscode-pylance"
12+
]
13+
}
14+
}
15+
}
16+

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v3
2323
with:
24-
python-version: 3.11
24+
python-version: 3.12
2525

2626
- name: Install dependencies
2727
run: |

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-python@v3
1414
with:
15-
python-version: "3.11"
15+
python-version: "3.12"
1616
architecture: x64
1717
- run: pip install --upgrade virtualenv pip setuptools
1818
- run: virtualenv .venv

.github/workflows/secure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-python@v3
1414
with:
15-
python-version: "3.11"
15+
python-version: "3.12"
1616
architecture: x64
1717
- run: pip install --upgrade virtualenv pip setuptools
1818
- run: virtualenv .venv

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: 3.11
22+
python-version: 3.12
2323

2424
- name: Install dependencies
2525
run: |

.github/workflows/type.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-python@v3
1414
with:
15-
python-version: "3.11"
15+
python-version: "3.12"
1616
architecture: x64
1717
- run: pip install --upgrade virtualenv pip setuptools
1818
- run: virtualenv .venv

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ cython_debug/
166166

167167
# Local dev files
168168
.tranco/
169-
*.json
169+
#*.json
170+
# If you want to keep ignoring other .json files, add specific ignores below, but allow devcontainer.json
171+
# !.devcontainer/devcontainer.json
170172
*.csv
171173
Screenshots/
172174
old_benchmarks/

.gitpod.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
image:
2+
file: .devcontainer/Dockerfile
3+
4+
tasks:
5+
- init: make create-venv && make install-flit && make install-dev && make enable-pre-commit-hooks
6+
command: echo "Ready to code!"
7+
open:
8+
- .venv/bin/activate
9+
vscode:
10+
extensions:
11+
- ms-python.python
12+
- ms-python.vscode-pylance

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_language_version:
2-
python: python3.11
2+
python: python3.12
33

44
default_stages: [commit, push]
55

0 commit comments

Comments
 (0)