Skip to content

Commit

Permalink
Merge pull request #488 from gdsfactory/update_ruff
Browse files Browse the repository at this point in the history
add ruff
  • Loading branch information
joamatab authored Nov 15, 2024
2 parents fa45d76 + a92d01e commit c5849b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ repos:
rev: "v0.6.9"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

# - repo: https://github.com/shellcheck-py/shellcheck-py
Expand Down
5 changes: 2 additions & 3 deletions notebooks/tidy3d_00_tidy3d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@
"source": [
"sp = gt.write_sparameters(\n",
" component,\n",
" filepath=PATH.sparameters_repo / \"coupler_ring_2d.npz\",\n",
" sim_size_z=0,\n",
" layer_stack=LAYER_STACK,\n",
" plot_simulation_layer_name=\"core\",\n",
Expand All @@ -408,7 +407,7 @@
"component = gf.components.straight()\n",
"sp = gt.write_sparameters(\n",
" component,\n",
" filepath=PATH.sparameters_repo / \"straight_2d.npz\",\n",
" # filepath=PATH.sparameters_repo / \"straight_2d.npz\",\n",
" sim_size_z=0,\n",
" center_z=\"core\",\n",
")"
Expand Down Expand Up @@ -1166,7 +1165,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ ignore-words-list = 'te, te/tm, te, ba, fpr, fpr_spacing, ro, nd, donot, schem,
skip = 'notebooks/palace_02_fullwave.ipynb'

[tool.mypy]
python_version = "3.10"
python_version = "3.11"
strict = true

[tool.pylsp-mypy]
Expand Down

0 comments on commit c5849b0

Please sign in to comment.