diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d12b52f..ab3f4d2f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -70,7 +70,6 @@ repos: - id: jupytext name: convert .py to .ipynb args: [--to, ipynb, --update] - verbose: true files: '^examples/(.*\.py)$' - repo: https://github.com/mwouts/jupytext rev: v1.16.4 diff --git a/examples/ruff.toml b/examples/ruff.toml index 1bb11475..2fb5e9a3 100644 --- a/examples/ruff.toml +++ b/examples/ruff.toml @@ -6,4 +6,5 @@ lint.extend-ignore = [ "E402", #module-import-not-at-top-of-file "S101", #assert "SIM115", #context manager for opening files + "ERA001", #commented out code ] diff --git a/pyproject.toml b/pyproject.toml index e2ad9b58..a65b1cff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -177,9 +177,6 @@ inline-quotes = "single" [tool.ruff.lint.pydocstyle] convention = "numpy" -[tool.ruff.lint.per-file-ignores] -"examples/**.py" = ["ERA001"] # py:percent preamble handled as commented out code - [tool.ruff.format] quote-style = "single" skip-magic-trailing-comma = false