Skip to content

Commit

Permalink
Merge pull request #377 from gdsfactory/fix_pre-commit
Browse files Browse the repository at this point in the history
update pre-commit
  • Loading branch information
joamatab authored Apr 30, 2024
2 parents e457dad + 9cc5502 commit 492da34
Show file tree
Hide file tree
Showing 17 changed files with 212 additions and 582 deletions.
38 changes: 26 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 9260cbc9c84c06022993bfbcc42fdbf0305c5b8e
rev: v4.6.0
hooks:
- id: check-yaml
exclude: ^(conda\.recipe/meta\.yaml|conda_build/templates/.*\.yaml|docs/click/meta\.yaml|conda/meta\.yaml|conda/construct.yaml|.*\.pic\.yml|conda/constructor/Miniforge3/construct.yaml)
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
files: ".ipynb"

- repo: https://github.com/psf/black
rev: 25d886f52c2bbbb58386ac8050f4e67952507bc7
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: black
- id: codespell
additional_dependencies:
- tomli

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "6a0ba1854991b693612486cc84a2254de82d071d"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.1"
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.10.0
rev: v2.13.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/kynan/nbstripout
rev: e4c5b4dcbab4afa0b88b7a9243db42b1a8d95dde

- repo: https://github.com/aristanetworks/j2lint.git
rev: v1.1.0
hooks:
- id: nbstripout
files: ".ipynb"
- id: j2lint
types: [file]
files: \.(j2|yml|yaml)$
exclude: .github/.*
62 changes: 31 additions & 31 deletions docs/notebooks/00_layout.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "9a27187a",
"id": "0",
"metadata": {},
"source": [
"# Layout\n",
Expand All @@ -13,7 +13,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1e2dfd9b",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -25,7 +25,7 @@
},
{
"cell_type": "markdown",
"id": "5ff8f212",
"id": "2",
"metadata": {},
"source": [
"## Fixed Component cells\n",
Expand All @@ -36,7 +36,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cff0d620",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -47,7 +47,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1275e6a7",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -58,7 +58,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "83c885a0",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -69,7 +69,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7c185343",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -80,7 +80,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6a235259",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -91,7 +91,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8af49e8a",
"id": "8",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -101,7 +101,7 @@
},
{
"cell_type": "markdown",
"id": "ccfae4d2",
"id": "9",
"metadata": {},
"source": [
"## Parametric Component PCells\n",
Expand All @@ -112,7 +112,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7bff697c",
"id": "10",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -123,7 +123,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3891d5ac",
"id": "11",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -134,7 +134,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5179d03b",
"id": "12",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -145,7 +145,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "57e8b0f0",
"id": "13",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -156,7 +156,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a962eb0a",
"id": "14",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -167,7 +167,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d1d9634e",
"id": "15",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -178,7 +178,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d348c4c8",
"id": "16",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -188,7 +188,7 @@
},
{
"cell_type": "markdown",
"id": "f3a3e792",
"id": "17",
"metadata": {},
"source": [
"## Components with grating couplers\n",
Expand All @@ -199,7 +199,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6103f4cc",
"id": "18",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -211,7 +211,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fe809f5a",
"id": "19",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -222,7 +222,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9e824506",
"id": "20",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -234,7 +234,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e291dcf7",
"id": "21",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -245,7 +245,7 @@
},
{
"cell_type": "markdown",
"id": "61e47076",
"id": "22",
"metadata": {},
"source": [
"## 3D rendering"
Expand All @@ -254,7 +254,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a4c9f5cb",
"id": "23",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -264,7 +264,7 @@
},
{
"cell_type": "markdown",
"id": "420144d7",
"id": "24",
"metadata": {},
"source": [
"## Die assembly"
Expand All @@ -273,7 +273,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4daec89a",
"id": "25",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -326,7 +326,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1ed290ae",
"id": "26",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -372,7 +372,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "581be784",
"id": "27",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -401,7 +401,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f64b8df0",
"id": "28",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -434,7 +434,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "525a1c3e",
"id": "29",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -460,7 +460,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "24c91ab4",
"id": "30",
"metadata": {},
"outputs": [],
"source": []
Expand Down
Loading

0 comments on commit 492da34

Please sign in to comment.