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 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"