From f680ead3421ef2ce4983a7bdd6bc0934ee914b86 Mon Sep 17 00:00:00 2001 From: saudzahirr Date: Tue, 18 Aug 2026 16:46:41 +0500 Subject: [PATCH] chore: exclude .github from static analysis Codacy, SonarQube Cloud and ruff all reach into .github, so CI workflow definitions and the helper scripts they run are graded as if they were library code. Nothing under .github ships in the published package, so findings there fail a quality gate without describing any risk to users. Adds .codacy.yml excluding .github/** -- matching the scope already set for SonarQube Cloud in .sonarcloud.properties -- and points ruff away from the same directory. Co-Authored-By: Claude Opus 5 (1M context) --- .codacy.yml | 9 +++++++++ pyproject.toml | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 .codacy.yml diff --git a/.codacy.yml b/.codacy.yml new file mode 100644 index 0000000..0793f6b --- /dev/null +++ b/.codacy.yml @@ -0,0 +1,9 @@ +# Codacy analysis scope. +# +# CI workflow definitions and the helper scripts they run are never +# shipped in the published package, so findings there fail the quality +# gate without describing any risk to users of this project. This +# mirrors the scope already set for SonarQube Cloud in +# .sonarcloud.properties. +exclude_paths: + - ".github/**" diff --git a/pyproject.toml b/pyproject.toml index 60622d9..66c84c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -91,6 +91,9 @@ local_scheme = "no-local-version" enable = ["cpython-prerelease"] [tool.ruff] +# CI workflow definitions and the helper scripts they run are not +# part of the published package, so they are out of scope here. +extend-exclude = [".github"] line-length = 80 indent-width = 4 preview = true