Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ CMakeCache*
CMakeFiles
cmake_install.cmake

.venv

tmp
.ipynb_checkpoints
2 changes: 1 addition & 1 deletion examples/jw_meshtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ def AddMultipleCurves(*allC):
for i in range(4, N, 2):
p, v = AddCurves(p, v, allC[i], allC[i + 1])
indi[j] = indi[j - 1] + len(allC[i])
j += 1 # noqa: SIM113
j += 1 # ruff:ignore[enumerate-for-loop]

return p, v, indi

Expand Down
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ extend-select = [
]
extend-ignore = [
"C90", # McCabe complexity
"E226", # missing whitespace around arithmetic operator
"E241", # multiple spaces after comma
"E242", # tab after comma
"E265", # block comment should start with #
"E402", # module level import not at the top of file
"missing-whitespace-around-arithmetic-operator",
"multiple-spaces-after-comma",
"tab-after-comma",
"no-space-after-block-comment",
"module-import-not-at-top-of-file",
]

[tool.ruff.lint.per-file-ignores]
"test/test_*.py" = ["S102"]
"doc/conf.py" = ["S102", "DTZ002"]
"examples/jw_meshtools.py" = ["N802", "N803", "N806"]
"examples/jw_mesh_examples.ipynb" = ["N802", "N803", "N806", "N816"]
"test/test_*.py" = ["exec-builtin"]
"doc/conf.py" = ["exec-builtin", "call-datetime-today"]
"examples/jw_meshtools.py" = ["invalid-function-name", "invalid-argument-name", "non-lowercase-variable-in-function"]
"examples/jw_mesh_examples.ipynb" = ["invalid-function-name", "invalid-argument-name", "non-lowercase-variable-in-function", "mixed-case-variable-in-global-scope"]

[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
Expand Down
Loading