forked from gdsfactory/gdsfactory_sample_project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (95 loc) · 2.34 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (95 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "pip", "build", "wheel"]
[project]
authors = [{name = "GDSFactory", email = "support@gdsfactory.com"}]
classifiers = ["Programming Language :: Python :: 3.12"]
dependencies = [
"cspdk==1.4.0",
"gdsfactoryplus",
"gplugins[sax,femwell,tidy3d]~=2.0.0",
"meow-sim"
]
description = "My cspdk demo project"
keywords = ["eda", "photonics", "python", "cspdk", "cornerstone"]
license = {file = "LICENSE"}
name = "mycspdk"
readme = "README.md"
requires-python = "~=3.12.0"
version = "0.0.0"
[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"uv"
]
[tool.codespell]
ignore-words-list = "te, te/tm, te, ba, fpr, fpr_spacing, ro, nd, donot, schem"
[tool.gdsfactoryplus.drc]
timeout = 300
[tool.gdsfactoryplus.pdk]
name = "cspdk.si220.cband"
[tool.gdsfactoryplus.sim.wls]
max = 1.6
min = 1.5
num = 1000
[tool.pyright]
reportMissingImports = true
reportMissingTypeStubs = false
reportPrivateImportUsage = false
reportUnknownMemberType = false
reportUnusedCallResult = false
reportUnusedExpression = false
[tool.ruff]
ignore = [
"B008", # do not perform function calls in argument defaults
"B028", # stacklevel
"B904",
"B905", # `zip()` without an explicit `strict=` parameter
"C408", # C408 Unnecessary `dict` call (rewrite as a literal)
"C901", # too complex
"D100", # public module docstrings
"D101", # public class docstrings
"D102", # public method docstrings
"D103", # public function docstrings
"D104", # public package docstrings
"E501" # line too long, handled by black
]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"T10", # flake8-debugger
"UP", # pyupgrade
"W" # pycodestyle warnings
]
[tool.ruff.pydocstyle]
convention = "google"
[tool.setuptools.package-data]
mycspdk = ["**/*.yml"]
[tool.setuptools.packages.find]
exclude = ["examples*"]
namespaces = false
where = ["."]
[tool.tbump]
[[tool.tbump.file]]
src = "README.md"
[[tool.tbump.file]]
src = "pyproject.toml"
[[tool.tbump.file]]
src = "mycspdk/__init__.py"
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "{new_version}"
[tool.tbump.version]
current = "0.0.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''