From 93d59cab00f23fd2d060c63abddd8fa4b2ccd819 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 18 Oct 2024 13:02:14 -0400 Subject: [PATCH] Remove a debug statement Modify pre-commit to prevent from happening again --- girder/girder_large_image/rest/__init__.py | 1 - pyproject.toml | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/girder/girder_large_image/rest/__init__.py b/girder/girder_large_image/rest/__init__.py index edcc6fa71..77f8f0df9 100644 --- a/girder/girder_large_image/rest/__init__.py +++ b/girder/girder_large_image/rest/__init__.py @@ -193,7 +193,6 @@ def _itemFindRecursive( # noqa if offset: fullPipeline.append({'$skip': offset}) - print(fullPipeline) logger.debug('Find item pipeline %r', fullPipeline) options = { diff --git a/pyproject.toml b/pyproject.toml index ef4ae4f8d..0eb22d599 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,14 +59,18 @@ lint.select = [ "PYI", "PT", "RSE", + "T", # print statements ] [tool.ruff.lint.per-file-ignores] # allow "useless expressions" as it shows output # allow non-top level imports # allow long lines -"docs/*.ipynb" = ["B018", "E402", "E501"] -"docs/*.py" = ["E501"] +".circleci/dcm4chee/*.py" = ["T201", "T203"] +"docs/*.ipynb" = ["B018", "E402", "E501", "T201", "T203"] +"docs/*.py" = ["E501", "T201", "T203"] +"examples/*" = ["T201", "T203"] +"test/*" = ["T201", "T203"] [tool.ruff.lint.flake8-quotes] inline-quotes = "single"