Skip to content

Commit 96b8b58

Browse files
committed
add a few more rule exceptions and fix some
1 parent e310252 commit 96b8b58

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

Design.ipynb

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NanobeamCavity.ipynb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ParticleSwarmOptimizedPBS.ipynb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ruff.toml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,24 @@ select = [
1515
"W", # pycodestyle warnings
1616
]
1717
ignore = [
18-
"B007", # Loop control variable not used within loop body
19-
"B008", # do not perform function calls in argument defaults
20-
"B028", # stacklevel
18+
"B006", # allow mutable defaults for notebooks
19+
"B007", # Loop control variable not used within loop body
20+
"B008", # do not perform function calls in argument defaults
21+
"B028", # stacklevel
2122
"B904",
22-
"B905", # `zip()` without an explicit `strict=` parameter
23-
"C408", # Unnecessary `dict` call
24-
"C417", # allow map
25-
"C901", # too complex
26-
"E402", # module level import not at top of file
27-
"E501", # line too long (handled by formatter)
28-
"E722", # we'll allow bare excepts in notebooks
29-
"E741", # "l" is ok as a variable name
30-
"F401", # imported but unused (common in notebooks for exploration)
31-
"UP006", # type annotation with Tuple[float] messes up pydantic
32-
"UP007", # use x | y instead of union[x,y] (does not work)
23+
"B905", # `zip()` without an explicit `strict=` parameter
24+
"C408", # Unnecessary `dict` call
25+
"C417", # allow map
26+
"C901", # too complex
27+
"E402", # module level import not at top of file
28+
"E501", # line too long (handled by formatter)
29+
"E722", # we'll allow bare excepts in notebooks
30+
"E731", # allow lambda assignment
31+
"E741", # "l" is ok as a variable name
32+
"F401", # imported but unused (common in notebooks for exploration)
33+
"NPY201", # allow numpy<2 for now
34+
"UP006", # type annotation with Tuple[float] messes up pydantic
35+
"UP007", # use x | y instead of union[x,y] (does not work)
3336
"UP035",
3437
"UP038",
3538
]

0 commit comments

Comments
 (0)