Skip to content

Commit

Permalink
Use python 3.10 type annotation
Browse files Browse the repository at this point in the history
and upgrade pre-commit hooks
  • Loading branch information
kiendang committed Mar 6, 2024
1 parent 17e8a4a commit 06ac74b
Show file tree
Hide file tree
Showing 250 changed files with 4,579 additions and 5,216 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ repos:
always_run: true

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
rev: 1.8.3
hooks:
- id: nbqa-isort
- id: nbqa-black

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.1.11"
rev: "v0.3.0"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand Down Expand Up @@ -193,7 +193,7 @@ repos:
]

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
files: "^notebooks/api|^notebooks/tutorials"
Expand Down
54 changes: 27 additions & 27 deletions notebooks/api/0.8/04-jax-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c292b468-55d7-4ab4-b0b3-5856b252e27e",
"id": "0",
"metadata": {
"tags": []
},
Expand All @@ -17,7 +17,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d18f00cc-f53b-4c8c-9fff-5a339d5fd65d",
"id": "1",
"metadata": {
"tags": []
},
Expand All @@ -37,7 +37,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "13da7417-5721-44f6-8bbb-bee0c5aba30f",
"id": "2",
"metadata": {
"tags": []
},
Expand All @@ -49,7 +49,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "29d14422-61f7-4a89-a1ae-a11c0e1b3a02",
"id": "3",
"metadata": {
"tags": []
},
Expand All @@ -61,7 +61,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c4d2328d-6229-4a20-8999-eec9553c2c24",
"id": "4",
"metadata": {
"tags": []
},
Expand All @@ -73,7 +73,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cfe5ba6e-21f7-4781-9c67-94b716e8f593",
"id": "5",
"metadata": {
"tags": []
},
Expand All @@ -85,7 +85,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4c4def70-6c1a-4eda-80d2-ebf0261ca332",
"id": "6",
"metadata": {
"tags": []
},
Expand All @@ -97,7 +97,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "24c082c6-5438-4065-bd4d-481fa2cc2475",
"id": "7",
"metadata": {
"tags": []
},
Expand All @@ -109,7 +109,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "29eb62fb-fc00-4222-9ccc-7657550aac56",
"id": "8",
"metadata": {
"tags": []
},
Expand All @@ -121,7 +121,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "38bac5b4-5d46-4f89-93c9-3ee3f5d7456a",
"id": "9",
"metadata": {
"tags": []
},
Expand All @@ -133,7 +133,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6722247f-90af-4ff1-8b98-64444b2d4c7c",
"id": "10",
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -163,7 +163,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "dd0077de-1b15-4b7c-93d3-820155e2993a",
"id": "11",
"metadata": {
"tags": []
},
Expand All @@ -175,7 +175,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e858cae9-c7db-48a9-88e9-a92c1ddc580c",
"id": "12",
"metadata": {
"tags": []
},
Expand All @@ -187,7 +187,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "98d1dff5-54a0-407a-a376-fb31dea6ede6",
"id": "13",
"metadata": {
"tags": []
},
Expand All @@ -199,7 +199,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "163a27fd-94e2-455d-9e94-9ff7000eace3",
"id": "14",
"metadata": {
"tags": []
},
Expand All @@ -211,7 +211,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e22cec3a-115a-4e2b-bdc2-bfca34e0ded3",
"id": "15",
"metadata": {
"tags": []
},
Expand All @@ -223,7 +223,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2153d838-fb86-4fe4-8747-dcb2a9336d03",
"id": "16",
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -263,7 +263,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1772f30b-952f-462c-9c05-638822fad7c5",
"id": "17",
"metadata": {
"tags": []
},
Expand All @@ -276,7 +276,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "45ad42d4-ceae-4aff-9b77-69b0a4df8bf6",
"id": "18",
"metadata": {
"tags": []
},
Expand All @@ -288,7 +288,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "18eefbd5-07bf-4d06-9b11-a48ed8e02a16",
"id": "19",
"metadata": {
"tags": []
},
Expand All @@ -301,7 +301,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "40aff3e8-f9d6-4a84-bcd2-67d13000cead",
"id": "20",
"metadata": {
"tags": []
},
Expand All @@ -313,7 +313,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "21f2ba58-4d99-4a40-ac5e-62bc928a9d29",
"id": "21",
"metadata": {
"tags": []
},
Expand All @@ -326,7 +326,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "bf3eecee-cfdb-45ab-b769-cb11cc7ae667",
"id": "22",
"metadata": {
"tags": []
},
Expand All @@ -338,7 +338,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "70f65fd2",
"id": "23",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -348,7 +348,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b33bf847-69e7-4c4a-87d9-3cd6ee4e0aa6",
"id": "24",
"metadata": {
"tags": []
},
Expand All @@ -360,7 +360,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4db2b73a-39a5-48cd-a8f8-36c6fc4174d0",
"id": "25",
"metadata": {
"tags": []
},
Expand All @@ -373,7 +373,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3ff1bfc6-7680-4255-b0b8-cc89d68c9fa9",
"id": "26",
"metadata": {},
"outputs": [],
"source": []
Expand Down
Loading

0 comments on commit 06ac74b

Please sign in to comment.