From 8af3f909487ffc0582b6cf3fb78e34c16e77d838 Mon Sep 17 00:00:00 2001 From: Christian Siegel Date: Wed, 8 Nov 2023 19:38:19 +0000 Subject: [PATCH] style: add some links to lint exceptions --- pyproject.toml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6a107899..06a35bc5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,12 +56,17 @@ ignore = [ "EM101", # https://docs.astral.sh/ruff/rules/raw-string-in-exception/ "EM102", # https://docs.astral.sh/ruff/rules/f-string-in-exception/ "S101", # https://docs.astral.sh/ruff/rules/assert/ - "TRY003", - "PD", # false positives; not using Pandas + "TRY003", # https://docs.astral.sh/ruff/rules/raise-vanilla-args/ + "PD", # https://docs.astral.sh/ruff/rules/#pandas-vet-pd (false positives) ] [tool.ruff.per-file-ignores] "**/__init__.py" = ["F401"] -"tests/**/*.py" = ["S106", "S108", "ANN", "PT009"] +"tests/**/*.py" = [ + "S106", # https://docs.astral.sh/ruff/rules/hardcoded-password-func-arg/ + "S108", # https://docs.astral.sh/ruff/rules/hardcoded-temp-file/ + "ANN", # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann + "PT009" # https://docs.astral.sh/ruff/rules/pytest-unittest-assertion/ +] # the following exclusions have been introduced to prevent huge changes # feel free to remove them and fix the code "gitopscli/appconfig_api/app_tenant_config.py" = ["PTH110", "PTH112", "PTH118"]