From b75e0ddb3cbcdfc9f26fddae3049ec04619dd672 Mon Sep 17 00:00:00 2001 From: rly Date: Tue, 4 Jun 2024 02:12:42 -0700 Subject: [PATCH] Update ruff config to latest recommended usage --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cce6c69..466d8a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,7 +101,7 @@ preview = true exclude = ".git|.mypy_cache|.tox|.venv|venv|.ipynb_checkpoints|_build/|dist/|__pypackages__|.ipynb|docs/" [tool.ruff] -select = ["E", "F", "T100", "T201", "T203"] +lint.select = ["E", "F", "T100", "T201", "T203"] exclude = [ ".git", ".tox", @@ -112,11 +112,11 @@ exclude = [ ] line-length = 120 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "src/pynwb/ndx_extracellular_channels/__init__.py" = ["E402", "F401"] "src/spec/create_extension_spec.py" = ["T201"] "src/pynwb/tests/test_example_usage_all.py" = ["T201"] "src/pynwb/tests/test_example_usage_probeinterface.py" = ["T201"] -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 17