Skip to content

Commit 0326c28

Browse files
committed
add: jupyter
1 parent a22dc83 commit 0326c28

File tree

6 files changed

+1412
-20
lines changed

6 files changed

+1412
-20
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"ms-azuretools.vscode-docker",
2020
"ms-python.python",
2121
"ms-python.vscode-pylance",
22+
"ms-toolsai.jupyter",
2223
"njpwerner.autodocstring",
2324
"redhat.vscode-yaml",
2425
"shardulm94.trailing-spaces",

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ms-azuretools.vscode-docker",
1010
"ms-python.python",
1111
"ms-python.vscode-pylance",
12+
"ms-toolsai.jupyter",
1213
"ms-vscode-remote.remote-containers",
1314
"njpwerner.autodocstring",
1415
"oderwat.indent-rainbow",

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"files.insertFinalNewline": true,
33
"files.trimTrailingWhitespace": true,
4+
"notebook.codeActionsOnSave": {
5+
"notebook.source.fixAll": "explicit",
6+
"notebook.source.organizeImports": "explicit"
7+
},
8+
"notebook.formatOnSave.enabled": true,
49
"python.defaultInterpreterPath": "/home/vscode/.venv/bin/python",
510
"python.testing.autoTestDiscoverOnSaveEnabled": false,
611
"python.testing.pytestEnabled": true,

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Specifically, you can solve this problem by following the steps below.
4545

4646
## Branches
4747
- [main](https://github.com/a5chin/python-uv/tree/main)
48-
- [jupyter](https://github.com/a5chin/python-uv/tree/jupyter)
48+
- [jupyter](https://github.com/a5chin/python-uv/tree/jupyter)(Archived)
4949
- [rye](https://github.com/a5chin/python-uv/tree/rye)(Archived)
5050

5151
## Settings
@@ -93,12 +93,12 @@ Specifically, you can solve this problem by following the steps below.
9393
## GitHub Actions
9494
- `docker.yml`
9595
- Workflow to check if you can build with Docker
96-
- `pyright.yml`
97-
- Workflow to check type
96+
- `format.yml`
97+
- Workflow to check format
98+
- `lint.yml`
99+
- Workflow to check lint
98100
- `test.yml`
99101
- Workflow to check if all the described tests can be passed with pytest
100-
- `ruff.yml`
101-
- Workflow to check if you can go through Formatter and Linter with Ruff
102102

103103
## Ruff
104104
Ruff can be used to replace Flake8, Black, isort, pydocstyle, pyupgrade, autoflake, etc., and yet run tens to hundreds of times faster than the individual tools.
@@ -120,10 +120,10 @@ The `.pre-commit-config.yaml` file can contain scripts to be executed before com
120120

121121
```sh
122122
# Python Formatter
123-
uv run ruff format .
123+
uv run nox -s fmt
124124

125125
# Python Linter
126-
uv run ruff check . --fix
126+
uv run nox -s lint -- --pyright --ruff
127127

128128
# Docker Linter
129129
hodolint Dockerfile
@@ -212,16 +212,19 @@ uv add {libraries}
212212
│ │ ├── __init__.py
213213
│ │ └── timer.py
214214
│ └── __init__.py
215+
├── .coveragerc
215216
├── .dockerignore
216217
├── .env.local
217218
├── .gitignore
218219
├── .pre-commit-config.yaml
219220
├── .python-version
220221
├── Dockerfile
222+
├── noxfile.py
221223
├── pyproject.toml
222224
├── pyrightconfig.json
223225
├── pytest.ini
224226
├── README.md
227+
├── renovate.json
225228
├── ruff.toml
226229
└── uv.lock
227230
```

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ dependencies = [
2020
dev = [
2121
"cookiecutter>=2.6.0",
2222
"cookiecutter-data-science>=2.3.0",
23+
"ipykernel>=7.1.0",
24+
"jupyter>=1.1.1",
2325
"mkdocs-material>=9.6.21",
2426
"nox>=2025.5.1",
2527
"pre-commit>=4.3.0",

0 commit comments

Comments
 (0)