From 185130027c4b9dd122eab4cf8cf2f4b8e8381bf9 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 16 Jul 2026 14:43:18 -0500 Subject: [PATCH 1/2] Git ignore .venv --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 2b83f83..e4f08d3 100644 --- a/.gitignore +++ b/.gitignore @@ -35,5 +35,7 @@ CMakeCache* CMakeFiles cmake_install.cmake +.venv + tmp .ipynb_checkpoints From 7658ff9881a28e65bbbd584cf55c6d94894fa4cf Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 16 Jul 2026 14:44:26 -0500 Subject: [PATCH 2/2] Switch to ruff:ignore --- examples/jw_meshtools.py | 2 +- pyproject.toml | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/jw_meshtools.py b/examples/jw_meshtools.py index ba30d45..10722b7 100644 --- a/examples/jw_meshtools.py +++ b/examples/jw_meshtools.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index a88b0f5..1ecea0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"