Skip to content

Commit 1066a3c

Browse files
FEAT: Patch improvements for pre/2.6 🛠️
1 parent 907d217 commit 1066a3c

27 files changed

+508
-101
lines changed

.github/workflows/run_tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,26 @@ name: Tidy3dTests
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [ development ]
6+
branches: [ develop ]
77
pull_request:
88
branches:
9-
- development
9+
- develop
1010
- 'pre/*'
1111

1212
jobs:
13+
pre-commit:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.10"
21+
- name: Test pre-commit hooks
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pre-commit
25+
pre-commit run
1326
build:
1427
name: test ${{ matrix.python-version }} - ${{ matrix.platform }}
1528
runs-on: ${{ matrix.platform }}
@@ -21,7 +34,6 @@ jobs:
2134
run:
2235
shell: bash
2336
env: # Set environment variables for the whole job
24-
PIP_FIND_LINKS: https://whls.blob.core.windows.net/unstable/index.html
2537
PIP_ONLY_BINARY: gdstk
2638
MPLBACKEND: agg
2739
steps:

.github/workflows/sync-to-readthedocs-repo.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,29 @@ on:
66
branches:
77
- main
88
- latest
9-
- repo_merge_no_history
9+
- 'pre/*'
10+
- dario/quick_patches_pre/2.6
1011
workflow_dispatch:
1112
inputs:
1213
env:
1314
description: environment
1415
default: dev
1516
required: true
1617
jobs:
18+
extract_branch:
19+
outputs:
20+
branch: ${{ steps.extractbranch.outputs.branch }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- id: extractbranch
24+
name: Extract branch name
25+
shell: bash
26+
run: |
27+
echo "::set-output name=branch::${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
28+
echo "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
29+
echo "${{ steps.extractbranch.outputs.branch }}"
1730
set_env:
31+
needs: extract_branch
1832
outputs:
1933
env: ${{ steps.setenv.outputs.env }}
2034
dest-branch: ${{ steps.dest-branch.outputs.branch }}
@@ -40,9 +54,10 @@ jobs:
4054
fi
4155
- id: dest-branch
4256
run: |
57+
echo "The destination branch is ${{ needs.extract_branch.outputs.branch }}"
4358
case ${{ env.ENV }} in
4459
dev)
45-
echo "::set-output name=branch::repo_merge_no_history"
60+
echo "::set-output name=branch::${{ needs.extract_branch.outputs.branch }}"
4661
;;
4762
prod)
4863
echo "::set-output name=branch::main"

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ repos:
1010
hooks:
1111
- id: ruff
1212
args: [ --fix ]
13+
14+
- repo: https://github.com/codespell-project/codespell
15+
rev: v2.2.6
16+
hooks:
17+
- id: codespell
18+
args: [ --exclude-file=poetry.lock ]
19+
additional_dependencies:
20+
- tomli

docs/api/heat/boundary_conditions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. currentmodule:: tidy3d
22

33
Thermal Boundary Conditions
4-
===============================
4+
-----------------------------
55

66
Specifications
7-
----------------
7+
''''''''''''''''''
88

99
.. autosummary::
1010
:toctree: ../_autosummary/
@@ -14,7 +14,7 @@ Specifications
1414

1515

1616
Types
17-
------
17+
''''''''''''''''''
1818

1919
.. autosummary::
2020
:toctree: ../_autosummary/
@@ -26,7 +26,7 @@ Types
2626

2727

2828
Placement
29-
-----------
29+
''''''''''''''''''
3030

3131
.. autosummary::
3232
:toctree: ../_autosummary/

docs/api/heat/discretization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. currentmodule:: tidy3d
22

33
Grid Specification
4-
===========
4+
--------------------
55

66
.. autosummary::
77
:toctree: ../_autosummary/

docs/api/heat/index.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
HEAT
2-
=======
1+
HEAT |:fire:|
2+
=============
33

44
.. toctree::
55
:hidden:
@@ -13,10 +13,10 @@ HEAT
1313
output_data
1414

1515

16-
.. include:: simulation.rst
17-
.. include:: mediums.rst
18-
.. include:: boundary_conditions.rst
19-
.. include:: source.rst
20-
.. include:: discretization.rst
21-
.. include:: monitor.rst
22-
.. include:: output_data.rst
16+
.. include:: /api/heat/simulation.rst
17+
.. include:: /api/heat/mediums.rst
18+
.. include:: /api/heat/boundary_conditions.rst
19+
.. include:: /api/heat/source.rst
20+
.. include:: /api/heat/discretization.rst
21+
.. include:: /api/heat/monitor.rst
22+
.. include:: /api/heat/output_data.rst

docs/api/heat/mediums.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. currentmodule:: tidy3d
22

33
Material Thermal Specification
4-
===============================
4+
-------------------------------
55

66
.. autosummary::
77
:toctree: ../_autosummary/

docs/api/heat/monitor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. currentmodule:: tidy3d
22

33
Monitors
4-
==========
4+
----------
55

66
.. autosummary::
77
:toctree: ../_autosummary/

docs/api/heat/output_data.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. currentmodule:: tidy3d
22

33
Output Data
4-
===========
4+
-------------
55

66
Monitor Data
7-
------------
7+
^^^^^^^^^^^^^^^
88

99
.. autosummary::
1010
:toctree: ../_autosummary/
@@ -14,7 +14,7 @@ Monitor Data
1414

1515

1616
Heat Simulation Data
17-
--------------------
17+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818

1919
.. autosummary::
2020
:toctree: ../_autosummary/

docs/api/heat/simulation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. currentmodule:: tidy3d
22

33
Simulation
4-
==========
4+
-----------
55

66
.. autosummary::
77
:toctree: ../_autosummary/

0 commit comments

Comments
 (0)