-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
176 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,47 @@ | ||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html | ||
|
||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
requires = ["flit_core >=3.2,<4"] | ||
|
||
[project] | ||
name="ubcpdk" | ||
description="ubcpdk pdk" | ||
authors = [ | ||
{name = "gdsfactory", email = "[email protected]"} | ||
] | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: OS Independent" | ||
] | ||
version="1.21.3" | ||
authors = [ | ||
{name = "gdsfactory", email = "[email protected]"}, | ||
dependencies = [ | ||
"gdsfactory==7.0.2", | ||
"gplugins[tidy3d]>=0.0.3,<0.1.0" | ||
] | ||
description = "ubcpdk pdk" | ||
keywords = ["python"] | ||
license = {file = "LICENSE"} | ||
dependencies = [ | ||
"gdsfactory==7.0.2", | ||
"gplugins[tidy3d]>=0.0.3,<0.1.0", | ||
] | ||
name = "ubcpdk" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
version = "1.21.3" | ||
|
||
[project.optional-dependencies] | ||
full = [ | ||
"femwell" | ||
] | ||
dev = [ | ||
"pytest", | ||
"pytest-cov", | ||
"pytest_regressions", | ||
] | ||
"pytest", | ||
"pytest-cov", | ||
"pytest_regressions" | ||
] | ||
docs = [ | ||
"autodoc_pydantic", | ||
"jupytext", | ||
"jupyter-book==0.15.1", | ||
] | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
"jupyter-book==0.15.1" | ||
] | ||
full = [ | ||
"femwell" | ||
] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py310'] | ||
include = '\.pyi?$' | ||
exclude = ''' # Specify the files/dirs that should be ignored by the black formatter | ||
/( | ||
\.eggs | ||
|
@@ -62,83 +57,63 @@ exclude = ''' # Specify the files/dirs that should be ignored by the black form | |
| dist | ||
)/ | ||
''' | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
# testpaths = ["ubcpdk/samples", "tests"] | ||
# addopts = --tb=no | ||
# addopts = '--tb=short' | ||
# python_files = ["ubcpdk/samples*.py", "tests/*.py"] | ||
python_files = ["tests/*.py"] | ||
# norecursedirs = ["extra/*.py", 'ubcdpk/simulations/*.py'] | ||
|
||
[tool.flake8] | ||
max-line-length = 88 | ||
max-complexity = 57 | ||
select = ["B","C","E","F","W","T4","B9"] | ||
ignore = [ "E501", "E503", "E722", "W503", "W503", "E203", "B950", "B305", "B018", "B902", "B020", "B905"] | ||
extend-ignore = "RST303" | ||
|
||
exclude = [ | ||
".git", | ||
"__pycache__", | ||
"lib", | ||
"docs/source/conf.py", | ||
"build", | ||
"dist", | ||
".ipynb_checkpoints", | ||
".tox", | ||
"extra", | ||
"deprecated", | ||
".mypy_cache", | ||
"venv", | ||
"devsim", | ||
] | ||
|
||
[tool.commitizen] | ||
name = "cz_conventional_commits" | ||
version = "0.1.0" | ||
version_files = [ | ||
"pyproject.toml:version", | ||
] | ||
include = '\.pyi?$' | ||
line-length = 88 | ||
target-version = ['py310'] | ||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
strict = true | ||
|
||
[tool.pydocstyle] | ||
add-ignore = ["D100", "D101", "D102", "D103", "D104", "D203", "D405", "D417"] | ||
convention = "google" | ||
inherit = false | ||
match = "(?!test).*\\.py" | ||
|
||
[tool.pylsp-mypy] | ||
enabled = true | ||
live_mode = true | ||
strict = true | ||
|
||
[tool.isort] | ||
multi_line_output = 3 | ||
line_length = 88 | ||
include_trailing_comma = true | ||
|
||
[tool.setuptools.package-data] | ||
mypkg = ["*.csv", "*.yaml"] | ||
|
||
[tool.pydocstyle] | ||
inherit = false | ||
match = "(?!test).*\\.py" | ||
add-ignore = ["D100","D101","D102","D103","D104","D203","D405","D417"] | ||
convention = "google" | ||
[tool.pytest.ini_options] | ||
# testpaths = ["ubcpdk/samples", "tests"] | ||
# addopts = --tb=no | ||
# addopts = '--tb=short' | ||
# python_files = ["ubcpdk/samples*.py", "tests/*.py"] | ||
python_files = ["tests/*.py"] | ||
testpaths = ["tests"] | ||
|
||
[tool.ruff] | ||
select = [ | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
# "I", # isort | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
] | ||
extend-exclude = ["docs/notebooks"] | ||
ignore = [ | ||
"E501", # line too long, handled by black | ||
"B008", # do not perform function calls in argument defaults | ||
"C901", # too complex | ||
"B905", # `zip()` without an explicit `strict=` parameter | ||
"C408", # C408 Unnecessary `dict` call (rewrite as a literal) | ||
"E501", # line too long, handled by black | ||
"B008", # do not perform function calls in argument defaults | ||
"C901", # too complex | ||
"B905", # `zip()` without an explicit `strict=` parameter | ||
"C408" # C408 Unnecessary `dict` call (rewrite as a literal) | ||
] | ||
extend-exclude = ["docs/notebooks"] | ||
select = [ | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
"I", # isort | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"UP" | ||
] | ||
|
||
[tool.ruff.per-file-ignores] | ||
"ubcpdk/samples/notebooks/11_sparameters.py" = ['E402'] | ||
"ubcpdk/samples/notebooks/12_sim_plugins_tidy3d.py" = ['E402'] | ||
"ubcpdk/samples/notebooks/13_sim_plugins.py" = ['E402'] | ||
"ubcpdk/samples/notebooks/14_sax_tidy3d.py" = ['E402'] | ||
"ubcpdk/samples/notebooks/21_schematic_driven_layout.py" = ['E402'] | ||
"ubcpdk/samples/notebooks/31_data_analysis_mzi.py" = ['E402'] | ||
"ubcpdk/samples/notebooks/33_data_analysis_dbr.py" = ['E402'] | ||
|
||
[tool.setuptools.package-data] | ||
mypkg = ["*.csv", "*.yaml"] | ||
|
||
[tool.setuptools.packages] | ||
find = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.