@@ -52,6 +52,7 @@ joblib = "*"
52
52
# development core
53
53
bump-my-version = {version =" *" , optional = true }
54
54
black = {version =" 23.12.1" , optional = true }
55
+ ruff = {version =" 0.2.2" , optional = true }
55
56
coverage = {version =" *" , optional = true }
56
57
dill = {version =" *" , optional = true }
57
58
ipython = {version =" *" , optional = true }
@@ -60,10 +61,8 @@ pre-commit = {version="*", optional = true}
60
61
pylint = {version =" *" , optional = true }
61
62
pytest = {version =" *" , optional = true }
62
63
pytest-timeout = {version =" *" , optional = true }
63
- ruff = {version =" 0.3.2" , optional = true }
64
64
tox = {version =" *" , optional = true }
65
65
66
-
67
66
# gdspy
68
67
gdspy = {version =" *" , optional = true }
69
68
@@ -111,8 +110,8 @@ devsim = {version="*", optional = true}
111
110
cma = {version =" *" , optional = true }
112
111
113
112
[tool .poetry .extras ]
114
- dev = [' bump-my-version' , ' black ' , " coverage" , ' dill' , ' divparams' , ' gdspy' , ' gdstk' , ' gdstk' , ' grcwa' , ' ipython' , ' ipython' , ' jax' , ' jaxlib' , ' jinja2' ,
115
- ' jupyter' , ' jupyterblack ' , ' myst-parser' , ' memory_profiler' , ' nbconvert' , ' nbdime' , ' nbsphinx' , ' networkx' , ' optax' , ' pre-commit' ,
113
+ dev = [' bump-my-version' , " coverage" , ' dill' , ' divparams' , ' gdspy' , ' gdstk' , ' gdstk' , ' grcwa' , ' ipython' , ' ipython' , ' jax' , ' jaxlib' , ' jinja2' ,
114
+ ' jupyter' , ' myst-parser' , ' memory_profiler' , ' nbconvert' , ' nbdime' , ' nbsphinx' , ' networkx' , ' optax' , ' pre-commit' ,
116
115
' pydata-sphinx-theme' , ' pylint' , ' pyswarms' , ' pytest' , ' pytest-timeout' , ' rtree' , ' ruff' , ' sax' , ' signac' , ' sphinx' ,
117
116
' sphinx-book-theme' , ' sphinx-copybutton' , ' sphinx-favicon' , ' sphinx-notfound-page' , ' sphinx-sitemap' , ' sphinx-tabs' , ' sphinxemoji' , ' tmm' , ' tox' , ' trimesh' ,
118
117
' scikit-rf' , ' vtk' , ' devsim' , ' cma' ]
@@ -141,30 +140,29 @@ requires = ["poetry-core>=1.0.0"]
141
140
build-backend = " poetry.core.masonry.api"
142
141
143
142
[tool .black ]
143
+ target-version = [" py39" ]
144
144
line-length = 100
145
- include = ' \.pyi?$'
146
- exclude = '''
147
- /(
148
- \.git
149
- | \.hg
150
- | \.mypy_cache
151
- | \.tox
152
- | \.venv
153
- | _build
154
- | buck-out
155
- | build
156
- | dist
157
- )/
158
- '''
159
-
145
+ extend-exclude = " docs/faq/|docs/notebooks/"
160
146
161
147
[tool .ruff ]
162
- lint.ignore-init-module-imports = true
163
- lint.typing-modules = [" tidy3d.components.types" ] # without this Literal["something fails"]
148
+ target-version = " py39"
164
149
line-length = 100
165
- fix = true
166
- lint.ignore = [
167
- " E501" , # line too long, handled by black
150
+ extend-exclude = [" docs/faq/" , " docs/notebooks/" ]
151
+
152
+ [tool .ruff .lint ]
153
+ ignore-init-module-imports = true
154
+ typing-modules = [" tidy3d.components.types" ] # without this Literal["something fails"]
155
+ select = [
156
+ " E" , # pycodestyle errors
157
+ " W" , # pycodestyle warnings
158
+ " F" , # pyflakes
159
+ " C" , # flake8-comprehensions
160
+ " B" , # flake8-bugbear
161
+ " UP" ,
162
+ " NPY201" , # numpy 2.* compatibility check
163
+ ]
164
+ ignore = [
165
+ " E501" ,
168
166
" B008" , # do not perform function calls in argument defaults
169
167
" C901" , # too complex
170
168
" UP007" , # use x | y instead of union[x,y] (does not work)
@@ -177,16 +175,6 @@ lint.ignore = [
177
175
" UP035" , # TODO decide what to do here
178
176
]
179
177
180
- lint.select = [
181
- " E" , # pycodestyle errors
182
- " W" , # pycodestyle warnings
183
- " F" , # pyflakes
184
- " C" , # flake8-comprehensions
185
- " B" , # flake8-bugbear
186
- " UP" ,
187
- " NPY201" , # numpy 2.* compatibility check
188
- ]
189
-
190
178
[tool .bumpversion ]
191
179
current_version = " 2.7.0rc2"
192
180
parse = """ (?x)
@@ -228,5 +216,3 @@ replace = "\nversion = \"{new_version}\""
228
216
filename = " tidy3d/version.py"
229
217
search = " {current_version}"
230
218
replace = " {new_version}"
231
-
232
- target-version = " py310"
0 commit comments