Skip to content

Commit aa0f180

Browse files
author
longendu
committed
1. add IDX configure; 2. update github workflow configs; 3. add poetry config
1 parent 88e8f8f commit aa0f180

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-version:
1515
- "3.10"
1616
steps:
17-
- uses: actions/cache@v2
17+
- uses: actions/cache@v4
1818
with:
1919
path: ~/.cache/pip
2020
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}

.idx/dev.nix

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{pkgs, ...}: {
2+
packages = [
3+
pkgs.neovim
4+
pkgs.python311
5+
pkgs.python311Packages.pip
6+
pkgs.poetry
7+
];
8+
env = {};
9+
idx = {
10+
# check extensions on https://open-vsx.org/
11+
extensions = [
12+
"vscodevim.vim"
13+
"ms-python.python"
14+
"ms-python.debugpy"
15+
];
16+
workspace = {
17+
#onCreate = {
18+
#}
19+
onStart = {
20+
poetry-project = ''
21+
poetry config --local virtualenvs.in-project true
22+
poetry install
23+
'';
24+
};
25+
};
26+
# Enable previews and customize configuration
27+
previews = {};
28+
};
29+
}

poetry.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[virtualenvs]
2+
in-project = true

0 commit comments

Comments
 (0)